install_themes_{$tab}
Action HookDescription
Fires at the top of each of the tabs on the Install Themes page. The dynamic portion of the hook name, `$tab`, refers to the current theme installation tab. Possible hook names include: - `install_themes_block-themes` - `install_themes_dashboard` - `install_themes_featured` - `install_themes_new` - `install_themes_search` - `install_themes_updated` - `install_themes_upload`Hook Information
File Location |
wp-admin/theme-install.php
View on GitHub
|
Hook Type | Action |
Line Number | 310 |
Hook Parameters
Type | Name | Description |
---|---|---|
int
|
$paged
|
Number of the current page of results being viewed. |
Usage Examples
Basic Usage
<?php
// Hook into install_themes_{$tab}
add_action('install_themes_{$tab}', 'my_custom_function', 10, 1);
function my_custom_function($paged) {
// Your custom code here
}
Source Code Context
wp-admin/theme-install.php:310
- How this hook is used in WordPress core
<?php
305 * @since 2.8.0
306 * @since 6.1.0 Added the `install_themes_block-themes` hook name.
307 *
308 * @param int $paged Number of the current page of results being viewed.
309 */
310 do_action( "install_themes_{$tab}", $paged );
311 }
312 ?>
313 </div>
314
315 <script id="tmpl-theme" type="text/template">
PHP Documentation
<?php
/**
* Fires at the top of each of the tabs on the Install Themes page.
*
* The dynamic portion of the hook name, `$tab`, refers to the current
* theme installation tab.
*
* Possible hook names include:
*
* - `install_themes_block-themes`
* - `install_themes_dashboard`
* - `install_themes_featured`
* - `install_themes_new`
* - `install_themes_search`
* - `install_themes_updated`
* - `install_themes_upload`
*
* @since 2.8.0
* @since 6.1.0 Added the `install_themes_block-themes` hook name.
*
* @param int $paged Number of the current page of results being viewed.
*/
Quick Info
- Hook Type: Action
- Parameters: 1
- File: wp-admin/theme-install.php
Related Hooks
Related hooks will be displayed here in future updates.