themes_api_args filter-hookWP 2.8.0

Filters arguments used to query for installer pages from the WordPress.org Themes API.

Important: An object MUST be returned to this filter.

Usage

add_filter( 'themes_api_args', 'wp_kama_themes_api_args_filter', 10, 2 );

/**
 * Function for `themes_api_args` filter-hook.
 * 
 * @param object $args   Arguments used to query for installer pages from the WordPress.org Themes API.
 * @param string $action Requested action. Likely values are 'theme_information', 'feature_list', or 'query_themes'.
 *
 * @return object
 */
function wp_kama_themes_api_args_filter( $args, $action ){

	// filter...
	return $args;
}
$args(object)
Arguments used to query for installer pages from the WordPress.org Themes API.
$action(string)
Requested action. Likely values are 'theme_information', 'feature_list', or 'query_themes'.

Changelog

Since 2.8.0 Introduced.

Where the hook is called

themes_api()
themes_api_args
wp-admin/includes/theme.php 525
$args = apply_filters( 'themes_api_args', $args, $action );

Where the hook is used in WordPress

Usage not found.