wphooks.info - setup_theme

setup_theme

(trunk - 5.1-alpha-44286)

The hook occurs in the following file:

/wp-settings.php:
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
 * @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";