install_themes_table_api_args_
Filter HookDescription
Handles getting themes from themes_api() via AJAX.Hook Information
File Location |
wp-admin/includes/ajax-actions.php
View on GitHub
|
Hook Type | Filter |
Line Number | 3643 |
Hook Parameters
This hook doesn't accept any parameters.
Usage Examples
Basic Usage
<?php
// Hook into install_themes_table_api_args_
add_filter('install_themes_table_api_args_', 'my_custom_filter');
function my_custom_filter() {
// Your custom filtering logic here
return 'modified_value';
}
Source Code Context
wp-admin/includes/ajax-actions.php:3643
- How this hook is used in WordPress core
<?php
3638 }
3639
3640 $old_filter = isset( $args['browse'] ) ? $args['browse'] : 'search';
3641
3642 /** This filter is documented in wp-admin/includes/class-wp-theme-install-list-table.php */
3643 $args = apply_filters( 'install_themes_table_api_args_' . $old_filter, $args );
3644
3645 $api = themes_api( 'query_themes', $args );
3646
3647 if ( is_wp_error( $api ) ) {
3648 wp_send_json_error();
PHP Documentation
<?php
/**
* Handles getting themes from themes_api() via AJAX.
*
* @since 3.9.0
*
* @global array $themes_allowedtags
* @global array $theme_field_defaults
*/
Quick Info
- Hook Type: Filter
- Parameters: 0
- File: wp-admin/includes/ajax-actions.php
Related Hooks
Related hooks will be displayed here in future updates.