setup_theme

The WordPress Core setup theme hook.

Description

add_action( 'setup_theme', (string) $jetpack_mobile_theme_setup ); 

Parameters (1)

0. $jetpack_mobile_theme_setup (string) => 'jetpack_mobile_theme_setup'
The jetpack mobile theme setup.

Usage

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

Defined (2)

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

/modules/minileven/minileven.php  
  1. add_action( 'setup_theme', 'jetpack_mobile_theme_setup' ); 
/modules/theme-tools/infinite-scroll.php  
  1. add_action( 'setup_theme', 'jetpack_load_infinite_scroll_annotation' );