init

init

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

See hook in core

Displaying hooks found in version: wordpress-6.8.1

do_action('init') is found 1 times:

  • /wp-settings.php line 727
    723
    724
    725
    726
    727
    728
    729
    730
    731
    732
    733
    * 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