install_themes_table_api_args_{$tab}
Filter HookDescription
Filters API request arguments for each Install Themes screen tab. The dynamic portion of the hook name, `$tab`, refers to the theme install tab. Possible hook names include: - `install_themes_table_api_args_dashboard` - `install_themes_table_api_args_featured` - `install_themes_table_api_args_new` - `install_themes_table_api_args_search` - `install_themes_table_api_args_updated` - `install_themes_table_api_args_upload`Hook Information
File Location |
wp-admin/includes/class-wp-theme-install-list-table.php
View on GitHub
|
Hook Type | Filter |
Line Number | 150 |
Hook Parameters
Type | Name | Description |
---|---|---|
array|false
|
$args
|
Theme install API arguments. |
Usage Examples
Basic Usage
<?php
// Hook into install_themes_table_api_args_{$tab}
add_filter('install_themes_table_api_args_{$tab}', 'my_custom_filter', 10, 1);
function my_custom_filter($args) {
// Your custom filtering logic here
return $args;
}
Source Code Context
wp-admin/includes/class-wp-theme-install-list-table.php:150
- How this hook is used in WordPress core
<?php
145 *
146 * @since 3.7.0
147 *
148 * @param array|false $args Theme install API arguments.
149 */
150 $args = apply_filters( "install_themes_table_api_args_{$tab}", $args );
151
152 if ( ! $args ) {
153 return;
154 }
155
PHP Documentation
<?php
/**
* Filters API request arguments for each Install Themes screen tab.
*
* The dynamic portion of the hook name, `$tab`, refers to the theme install
* tab.
*
* Possible hook names include:
*
* - `install_themes_table_api_args_dashboard`
* - `install_themes_table_api_args_featured`
* - `install_themes_table_api_args_new`
* - `install_themes_table_api_args_search`
* - `install_themes_table_api_args_updated`
* - `install_themes_table_api_args_upload`
*
* @since 3.7.0
*
* @param array|false $args Theme install API arguments.
*/
Quick Info
- Hook Type: Filter
- Parameters: 1
- File: wp-admin/includes/class-wp-theme-install-list-table.php
Related Hooks
Related hooks will be displayed here in future updates.