wpseek.com
Outil de recherche WordPress pour les développeurs et auteurs de thèmes



load_default_widgets › Les Filtres WordPress

Depuis2.8.0
Dépréciéen/a
› apply_filters( 'load_default_widgets', true )
Paramètres:
  • () wp_maybe_load_widgets Whether to load the Widgets library. Default true.
    Requis: Oui
Défini(e) dans:
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 ) ) {