WordPress at Your Fingertips
action is not described

setup_theme action-hook . WP 2.6.0

Fires before the theme is loaded.

Usage

add_action( 'setup_theme', 'action_function_name_338' );
function action_function_name_338(){
	// action...
}

Changelog

Since 2.6.0 Introduced.

Where the hook is called

In file: /wp-settings.php
setup_theme
wp-settings.php 510
do_action( 'setup_theme' );

Where in WP core the hook is used WordPress

wp-includes/blocks/site-logo.php 162
add_action( 'setup_theme', '_delete_site_logo_on_remove_custom_logo_on_setup_theme', 11 );
wp-includes/class-wp-customize-manager.php 366
add_action( 'setup_theme', array( $this, 'setup_theme' ) );
wp-includes/default-filters.php 515
add_action( 'setup_theme', 'create_initial_theme_features', 0 );
wp-includes/default-filters.php 667
add_action( 'setup_theme', 'wp_enable_block_templates' );