Filter hook 'pre_wp_load_alloptions'

in WP Core File wp-includes/option.php at line 596

Description

Filters the array of alloptions before it is populated. Returning an array from the filter will effectively short circuit wp_load_alloptions(), returning that value instead.

Occurrences

Filename Line Number
wp-includes/option.php 596

Parameters

Type Name Description
array|null $alloptions An array of alloptions. Default null.
bool $force_cache Whether to force an update of the local cache from the persistent cache. Default false.

PHP Doc

/**
	 * Filters the array of alloptions before it is populated.
	 *
	 * Returning an array from the filter will effectively short circuit
	 * wp_load_alloptions(), returning that value instead.
	 *
	 * @since 6.2.0
	 *
	 * @param array|null $alloptions  An array of alloptions. Default null.
	 * @param bool       $force_cache Whether to force an update of the local cache from the persistent cache. Default false.
	 */