wpseek.com
WordPress开发者和主题制作者的搜索引擎



pre_wp_load_alloptions › WordPress过滤钩子

Since6.2.0
已弃用n/a
apply_filters( 'pre_wp_load_alloptions', null, $force_cache )
参数: (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
定义在:
文档:

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.





源码

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