after_setup_theme

The WordPress Core after setup theme hook.

Description

add_action( 'after_setup_theme', (callback) $array, (int) $int ); 

Parameters (2)

0. $array (callback) => array( $this, 'set_default_color_theme_based_on_theme_settings' )
The array.
1. $int (int) => 100
The int.

Usage

To run the hook, copy the example below.
  1. // run the action 
  2. do_action( 'after_setup_theme', $array, $int ); 
The following example is for adding a hook callback.
  1. // define the after_setup_theme callback 
  2. function action_after_setup_theme( $array, $int ) { 
  3. // make action magic happen here... 
  4. }; 
  5.  
  6. // add the action 
  7. add_action( 'after_setup_theme', 'action_after_setup_theme', 10, 2 ); 
To remove a hook callback, use the example below.
  1. // remove the action 
  2. remove_action( 'after_setup_theme', 'action_after_setup_theme', 10, 2 ); 

Defined (15)

The action is defined in the following location(s).

/modules/comments/comments.php  
  1. add_action( 'after_setup_theme', array( $this, 'set_default_color_theme_based_on_theme_settings' ), 100 ); 
/modules/infinite-scroll/themes/twentyfifteen.php  
  1. add_action( 'after_setup_theme', 'twentyfifteen_infinite_scroll_init' ); 
/modules/infinite-scroll/themes/twentyfourteen.php  
  1. add_action( 'after_setup_theme', 'twentyfourteen_infinite_scroll_init' ); 
/modules/infinite-scroll/themes/twentysixteen.php  
  1. add_action( 'after_setup_theme', 'twentysixteen_infinite_scroll_init' ); 
/modules/infinite-scroll/themes/twentythirteen.php  
  1. add_action( 'after_setup_theme', 'twentythirteen_infinite_scroll_init' ); 
/modules/infinite-scroll/themes/twentytwelve.php  
  1. add_action( 'after_setup_theme', 'twenty_twelve_infinite_scroll_init' ); 
/modules/infinite-scroll.php  
  1. add_action( 'after_setup_theme', array( $this, 'action_after_setup_theme' ), 5 ); 
  1. remove_action( 'after_setup_theme', 'the_neverending_home_page_theme_support', 5 ); 
/modules/infinite-scroll/infinity.php  
  1. add_action( 'after_setup_theme', 'the_neverending_home_page_theme_support', 5 ); 
/modules/minileven/theme/pub/minileven/functions.php  
  1. add_action( 'after_setup_theme', 'minileven_setup' ); 
/modules/theme-tools/compat/twentyfifteen.php  
  1. add_action( 'after_setup_theme', 'twentyfifteen_jetpack_setup' ); 
/modules/theme-tools/compat/twentysixteen.php  
  1. add_action( 'after_setup_theme', 'twentysixteen_jetpack_setup' ); 
/modules/theme-tools/responsive-videos.php  
  1. add_action( 'after_setup_theme', 'jetpack_responsive_videos_init', 99 ); 
/modules/theme-tools/social-menu.php  
  1. add_action( 'after_setup_theme', 'jetpack_social_menu_init', 99 ); 
/modules/theme-tools.php  
  1. add_action( 'after_setup_theme', 'jetpack_load_theme_compat', -1 );