install_themes_<tab>
Fires at the top of each of the tabs on the Install Themes page.
Description
The dynamic portion(s) of the hook name refer to the current theme install tab. Possible values are dashboard,, search., upload, 'featured', new, or updated.
Parameters (1)
- 0. $paged (int)
- Number of the current page of results being viewed.
Usage
- To run the hook, copy the example below.
- // run the action
- do_action( 'install_themes_{$tab}', $paged );
- The following example is for adding a hook callback.
- // define the install_themes_<tab> callback
- function action_install_themes_tab( $paged ) {
- // make action magic happen here...
- };
- // add the action
- add_action( "install_themes_{$tab}", 'action_install_themes_tab', 10, 1 );
- To remove a hook callback, use the example below.
- // remove the action
- remove_action( "install_themes_{$tab}", 'action_install_themes_tab', 10, 1 );
Defined (1)
The action is defined in the following location(s).
- /wp-admin/theme-install.php
- do_action( "install_themes_{$tab}", $paged );