Uma área de pesquisa sobre o WordPress para devs e autores do tema



load_default_widgets ›

Desde2.8.0
Obsoleton/a
apply_filters( 'load_default_widgets', true )
Parâmetros:
  • (bool) $wp_maybe_load_widgets Whether to load the Widgets library. Default true.
    Required: Yes
Definido em:
Codex:

Filters whether to load the Widgets library.

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





Fonte

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