ajax_query_attachments_args filter-hookWP 3.7.0

Filters the arguments passed to WP_Query during an Ajax call for querying attachments.

Usage

add_filter( 'ajax_query_attachments_args', 'wp_kama_ajax_query_attachments_args_filter' );

/**
 * Function for `ajax_query_attachments_args` filter-hook.
 * 
 * @param array $query An array of query variables.
 *
 * @return array
 */
function wp_kama_ajax_query_attachments_args_filter( $query ){

	// filter...
	return $query;
}
$query(array)
An array of query variables.

Changelog

Since 3.7.0 Introduced.

Where the hook is called

wp_ajax_query_attachments()
ajax_query_attachments_args
wp-admin/includes/ajax-actions.php 3039
$query             = apply_filters( 'ajax_query_attachments_args', $query );

Where the hook is used in WordPress

Usage not found.