wpseek.com
A WordPress-centric search engine for devs and theme authors



pre_wp_load_alloptions › WordPress Filter Hooks

Since6.2.0
Deprecatedn/a
apply_filters( 'pre_wp_load_alloptions', null, $force_cache )
Parameters: (2)
  • (array|null) $alloptions An array of alloptions. Default null.
    Required: Yes
  • (bool) $force_cache Whether to force an update of the local cache from the persistent cache. Default false.
    Required: Yes
Defined at:
Codex:

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.





Source

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