init

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('init') is found 1 times:

  • /wp-settings.php line 704
    700
    701
    702
    703
    704
    705
    706
    707
    708
    709
    710
    * If you wish to plug an action once WP is loaded, use the {@see 'wp_loaded'} hook below.
     *
     * @since 1.5.0
     */
    do_action( 'init' );
     
    // Check site status.
    if ( is_multisite() ) {
        $file = ms_site_check();
        if ( true !== $file ) {
            require $file;

See this hook used in plugins:

Examples using init