W3cubDocs

/WordPress

apply_filters( ‘pre_wp_load_alloptions’, array|null $alloptions, bool $force_cache )

Filters the array of alloptions before it is populated.

Description

Returning an array from the filter will effectively short circuit wp_load_alloptions() , returning that value instead.

Parameters

$alloptionsarray|null
An array of alloptions. Default null.
$force_cachebool
Whether to force an update of the local cache from the persistent cache. Default false.

Source

$alloptions = apply_filters( 'pre_wp_load_alloptions', null, $force_cache );

Changelog

Version Description
6.2.0 Introduced.

© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/pre_wp_load_alloptions