wphooks.info - setup_theme

setup_theme

(trunk - 5.0-alpha-42177)

The hook occurs in the following file:

/wp-settings.php:
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
 * @global WP_Roles $wp_roles
 * @since 2.0.0
 */
$GLOBALS['wp_roles'] = new WP_Roles();

/**
 * Fires before the theme is loaded.
 *
 * @since 2.6.0
 */
do_action( 'setup_theme' );

// Define the template related constants.
wp_templating_constants(  );

// Load the default text localization domain.
load_default_textdomain();

$locale = get_locale();
$locale_file = WP_LANG_DIR . "/$locale.php";