wpseek.com
Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren



load_default_widgets › WordPress Filter Hooks

Seit2.8.0
Veraltetn/v
apply_filters( 'load_default_widgets', true )
Parameter:
  • () wp_maybe_load_widgets Whether to load the Widgets library. Default true.
    Erforderlich: Ja
Definiert in:
Codex:

Filters whether to load the Widgets library.

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




Quellcode

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