wppaste
WordPress

apply_filters( 'wp_ajax_menu_quick_search_args', array $args )

Since
6.9.0
Filter the menu quick search arguments.

Compatibility

WordPress
since 6.9.0
  • 6.7.7
  • 6.8.8
  • 6.9.7
  • 7.0.4
  • 7.1.0

Present in 3 of the 5 tracked releases, added in 6.9.0.

Parameters

$argsarray
{ Menu quick search arguments.
@type boolean $no_found_rows Whether to return found rows data. Default true.
@type boolean $update_post_meta_cache Whether to update post meta cache. Default false.
@type boolean $update_post_term_cache Whether to update post term cache. Default false.
@type int $posts_per_page Number of posts to return. Default 10.
@type string $post_type Type of post to return.
@type string $s Search query.
@type array $search_columns Which post table columns to query.
}
  • $no_found_rowsboolean

    Whether to return found rows data. Default true.
  • $update_post_meta_cacheboolean

    Whether to update post meta cache. Default false.
  • $update_post_term_cacheboolean

    Whether to update post term cache. Default false.
  • $posts_per_pageint

    Number of posts to return. Default 10.
  • $post_typestring

    Type of post to return.
  • $sstring

    Search query.
  • $search_columnsarray

    Which post table columns to query.

Where this hook fires · 1

  • wp-admin/includes/nav-menu.php:112_wp_ajax_menu_quick_search()

Source code

			 *     @type int          $posts_per_page         Number of posts to return. Default 10.			 *     @type string       $post_type              Type of post to return.			 *     @type string       $s                      Search query.			 *     @type array        $search_columns         Which post table columns to query.			 * }			*/			$query_args = apply_filters( 'wp_ajax_menu_quick_search_args', $query_args );			$args       = array_merge( $args, $query_args ); 			if ( isset( $post_type_obj->_default_query ) ) {				$args = array_merge( $args, (array) $post_type_obj->_default_query );			}

Changelog

Introduced in 6.9.0. Unchanged from 6.9.7 through 7.1.0.

  1. 6.9.7
  2. 7.0.4
  3. 7.1.0

Signature, return type and hooks compared across 3 parsed releases.

About this page

Parsed data
Generated from the wordpress-develop 7.1.0 tag, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.
Corrections
Something wrong on this page? Report it and it gets fixed in the next regeneration.