wpseek.com
Bazujące na WordPress narzędzie wyszukiwania dla deweloperów i twórców motywów.



load_default_widgets › Filtr WordPress Hooks

Od2.8.0
Przestarzałyn/a
› apply_filters( 'load_default_widgets', true )
Parametry:
  • () wp_maybe_load_widgets Whether to load the Widgets library. Default true.
    Wymagane: Tak
Zdefiniowane na:
Codex:

Filters whether to load the Widgets library.

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




Źródło

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