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.
$alloptionsarray|null
$force_cachebool
$alloptions = apply_filters( 'pre_wp_load_alloptions', null, $force_cache );
| 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