init

init

Hook Type: action
See hook in action
See hook in
Displaying hooks found in version: wordpress-5.2.4

do_action('init') is found 1 times:

  • /wp-settings.php line 525
     * 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() ) {
    	if ( true !== ( $file = ms_site_check() ) ) {
    		require( $file );
    		die();
    

See this hook used in plugins:

Examples using init