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



load_default_widgets › WordPress过滤钩子

Since2.8.0
已弃用n/a
› apply_filters( 'load_default_widgets', true )
参数:
  • () wp_maybe_load_widgets Whether to load the Widgets library. Default true.
    Required: Yes
定义在:
文档:

Filters whether to load the Widgets library.

Returning a falsey value from the filter will effectively short-circuit the Widgets library from loading.




源码

if ( ! apply_filters( 'load_default_widgets', true ) ) {