wphooks.info - after_setup_theme

after_setup_theme

(trunk - 5.1-alpha-44286)

The hook occurs in the following file:

/wp-settings.php:
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
	if ( file_exists( TEMPLATEPATH . '/functions.php' ) ) {
		include( TEMPLATEPATH . '/functions.php' );
	}
}

/**
 * Fires after the theme is loaded.
 *
 * @since 3.0.0
 */
do_action( 'after_setup_theme' );

// Set up current user.
$GLOBALS['wp']->init();

/**
 * Fires after WordPress has finished loading but before any headers are sent.
 *
 * Most of WP is loaded at this stage, and the user is authenticated. WP continues
 * to load on the {@see 'init'} hook that follows (e.g. widgets), and many plugins instantiate