setup_theme

setup_theme

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

See hook in core

Displaying hooks found in version: wordpress-6.7.1

do_action('setup_theme') is found 1 times:

  • /wp-settings.php line 634
     * Fires before the theme is loaded.
     *
     * @since 2.6.0
     */
    do_action( 'setup_theme' );
    
    // Define the template related constants and globals.
    wp_templating_constants();
    wp_set_template_globals();
    
    // Load the default text localization domain.
    

See this hook used in plugins: