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



load_default_widgets › Hooks de Filtros WordPress

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

Filters whether to load the Widgets library.

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




Fonte

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