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
$alloptions
array|null- An array of alloptions. Default null.
$force_cache
bool- 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. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.