ajax_query_attachments_args, $query

ajax_query_attachments_args, $query

Appears in:
Hook Type: filter

See hook in core

Displaying hooks found in version: 7.0.3

apply_filters('ajax_query_attachments_args, $query') is found 1 times:

  • /wp-admin/includes/ajax-actions.php line 3087
    	 * @see WP_Query::parse_query()
    	 *
    	 * @param array $query An array of query variables.
    	 */
    	$query             = apply_filters( 'ajax_query_attachments_args', $query );
    	$attachments_query = new WP_Query( $query );
    	update_post_parent_caches( $attachments_query->posts );
    
    	$posts       = array_map( 'wp_prepare_attachment_for_js', $attachments_query->posts );
    	$posts       = array_filter( $posts );
    	$total_posts = $attachments_query->found_posts;