Filter hook 'load_default_widgets'

in WP Core File wp-includes/functions.php at line 5383

Description

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

Occurrences

Filename Line Number
wp-includes/functions.php 5383

Parameters

Type Name Description
bool $wp_maybe_load_widgets Whether to load the Widgets library. Default true.

PHP Doc

/**
	 * Filters whether to load the Widgets library.
	 *
	 * Returning a falsey value from the filter will effectively short-circuit
	 * the Widgets library from loading.
	 *
	 * @since 2.8.0
	 *
	 * @param bool $wp_maybe_load_widgets Whether to load the Widgets library.
	 *                                    Default true.
	 */