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



load_default_widgets › WordPress Filter Hooks

Since2.8.0
Deprecatedn/a
apply_filters( 'load_default_widgets', true )
Parameters:
  • () wp_maybe_load_widgets Whether to load the Widgets library. Default true.
    Required: Yes
Defined at:
Codex:

Filters whether to load the Widgets library.

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




Source

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