load_default_widgets

load_default_widgets

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.7.1

apply_filters('load_default_widgets') is found 1 times:

  • /wp-includes/functions.php line 5420
    	 *
    	 * @param bool $wp_maybe_load_widgets Whether to load the Widgets library.
    	 *                                    Default true.
    	 */
    	if ( ! apply_filters( 'load_default_widgets', true ) ) {
    		return;
    	}
    
    	require_once ABSPATH . WPINC . '/default-widgets.php';
    
    	add_action( '_admin_menu', 'wp_widgets_add_menu' );