init

init

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

See hook in core

Displaying hooks found in version: wordpress-6.4.3

do_action('init') is found 1 times:

  • /wp-settings.php line 643
     * 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