wpseek.com
Un motore di ricerca WordPress per sviluppatori e autori di temi



load_default_widgets › WordPress Filter Hooks

Da2.8.0
Deprecaton/a
› apply_filters( 'load_default_widgets', true )
Parametri:
  • () wp_maybe_load_widgets Whether to load the Widgets library. Default true.
    Richiesto: Sì
Definito a:
Codex:

Filters whether to load the Widgets library.

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




Sorgenti

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