after_setup_theme action-hookWP 3.0.0

Fires after the theme is loaded.

Usage

add_action( 'after_setup_theme', 'wp_kama_after_setup_theme_action' );

/**
 * Function for `after_setup_theme` action-hook.
 * 
 * @return void
 */
function wp_kama_after_setup_theme_action(){

	// action...
}

Changelog

Since 3.0.0 Introduced.

Where the hook is called

In file: /wp-settings.php
after_setup_theme
wp-settings.php 673
do_action( 'after_setup_theme' );

Where the hook is used in WordPress

wp-includes/class-wp-customize-manager.php 570
add_action( 'after_setup_theme', array( $this, 'after_setup_theme' ) );
wp-includes/class-wp-customize-manager.php 592
add_action( 'after_setup_theme', array( $this, 'establish_loaded_changeset' ), 5 );
wp-includes/class-wp-customize-manager.php 600
add_action( 'after_setup_theme', array( $this, 'import_theme_starter_content' ), 100 );
wp-includes/default-filters.php 524
add_action( 'after_setup_theme', '_add_default_theme_supports', 1 );
wp-includes/default-filters.php 650
add_action( 'after_setup_theme', 'wp_setup_widgets_block_editor', 1 );
wp-includes/default-filters.php 722
add_action( 'after_setup_theme', 'wp_enable_block_templates', 1 );
wp-settings.php 399
add_action( 'after_setup_theme', array( wp_script_modules(), 'add_hooks' ) );
wp-settings.php 400
add_action( 'after_setup_theme', array( wp_interactivity(), 'add_hooks' ) );