after_setup_theme
The WordPress Core after setup theme hook.
Description
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.
- // run the action
- do_action( 'after_setup_theme', $array, $int );
- The following example is for adding a hook callback.
- // define the after_setup_theme callback
- function action_after_setup_theme( $array, $int ) {
- // make action magic happen here...
- };
- // add the action
- add_action( 'after_setup_theme', 'action_after_setup_theme', 10, 2 );
- To remove a hook callback, use the example below.
- // remove the action
- 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
- add_action( 'after_setup_theme', array( $this, 'set_default_color_theme_based_on_theme_settings' ), 100 );
- /modules/infinite-scroll/themes/twentyfifteen.php
- add_action( 'after_setup_theme', 'twentyfifteen_infinite_scroll_init' );
- /modules/infinite-scroll/themes/twentyfourteen.php
- add_action( 'after_setup_theme', 'twentyfourteen_infinite_scroll_init' );
- /modules/infinite-scroll/themes/twentysixteen.php
- add_action( 'after_setup_theme', 'twentysixteen_infinite_scroll_init' );
- /modules/infinite-scroll/themes/twentythirteen.php
- add_action( 'after_setup_theme', 'twentythirteen_infinite_scroll_init' );
- /modules/infinite-scroll/themes/twentytwelve.php
- add_action( 'after_setup_theme', 'twenty_twelve_infinite_scroll_init' );
- /modules/infinite-scroll.php
- add_action( 'after_setup_theme', array( $this, 'action_after_setup_theme' ), 5 );
- remove_action( 'after_setup_theme', 'the_neverending_home_page_theme_support', 5 );
- /modules/infinite-scroll/infinity.php
- add_action( 'after_setup_theme', 'the_neverending_home_page_theme_support', 5 );
- /modules/minileven/theme/pub/minileven/functions.php
- add_action( 'after_setup_theme', 'minileven_setup' );
- /modules/theme-tools/compat/twentyfifteen.php
- add_action( 'after_setup_theme', 'twentyfifteen_jetpack_setup' );
- /modules/theme-tools/compat/twentysixteen.php
- add_action( 'after_setup_theme', 'twentysixteen_jetpack_setup' );
- /modules/theme-tools/responsive-videos.php
- add_action( 'after_setup_theme', 'jetpack_responsive_videos_init', 99 );
- /modules/theme-tools/social-menu.php
- add_action( 'after_setup_theme', 'jetpack_social_menu_init', 99 );
- /modules/theme-tools.php
- add_action( 'after_setup_theme', 'jetpack_load_theme_compat', -1 );