A WordPress-centric search engine for devs and theme authors



load_default_widgets ›

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

Filters whether to load the Widgets library.

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





Source

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