apply_filters( ‘wp_ajax_menu_quick_search_args’, array $args )

In this article

Filter the menu quick search arguments.

Parameters

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

Source

$query_args = apply_filters( 'wp_ajax_menu_quick_search_args', $query_args );

Changelog

VersionDescription
6.9.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.