widgets_init

widgets_init

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: action
See hook in action

See hook in core

Displaying hooks found in version: wordpress-6.7.2

do_action('widgets_init') is found 1 times:

  • /wp-includes/widgets.php line 1870
    1866
    1867
    1868
    1869
    1870
    1871
    1872
    1873
    1874
    1875
    1876
         * Fires after all default WordPress widgets have been registered.
         *
         * @since 2.2.0
         */
        do_action( 'widgets_init' );
    }
     
    /**
     * Enables the widgets block editor. This is hooked into 'after_setup_theme' so
     * that the block editor is enabled by default but can be disabled by themes.
     *

See this hook used in plugins: