setup_theme
The WordPress Core setup theme hook.
Description
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.
- // run the action
- do_action( 'setup_theme', $jetpack_mobile_theme_setup );
- The following example is for adding a hook callback.
- // define the setup_theme callback
- function action_setup_theme( $jetpack_mobile_theme_setup ) {
- // make action magic happen here...
- };
- // add the action
- add_action( 'setup_theme', 'action_setup_theme', 10, 1 );
- To remove a hook callback, use the example below.
- // remove the action
- remove_action( 'setup_theme', 'action_setup_theme', 10, 1 );
Defined (2)
The action is defined in the following location(s).
- /modules/minileven/minileven.php
- add_action( 'setup_theme', 'jetpack_mobile_theme_setup' );
- /modules/theme-tools/infinite-scroll.php
- add_action( 'setup_theme', 'jetpack_load_infinite_scroll_annotation' );