On this page
apply_filters( 'load_default_widgets', bool $wp_maybe_load_widgets )
Filters whether to load the Widgets library.
Description
Returning a falsey value from the filter will effectively short-circuit the Widgets library from loading.
Parameters
$wp_maybe_load_widgetsbool-
Whether to load the Widgets library.
Default true.
Source
File: wp-includes/functions.php. View all references
if ( ! apply_filters( 'load_default_widgets', true ) ) {
Related
Used By
| Used By | Description |
|---|---|
| wp_maybe_load_widgets() wp-includes/functions.php | Determines if Widgets library should be loaded. |
Changelog
| Version | Description |
|---|---|
| 2.8.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/load_default_widgets