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

VersionDescription
6.2.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.