Filter: ep_autosuggest_query_args

apply_filters( 'ep_autosuggest_query_args', $args ) → {array}

Filter WP Query args of the autosuggest query template.

If you want to display 20 posts in autosuggest:

add_filter(
    'ep_autosuggest_query_args',
    function( $args ) {
        $args['posts_per_page'] = 20;
        return $args;
    }
);
Parameters:
Name Type Description
$args array

Query args

Since:
  • 4.4.0
Source:
Returns:

New query args

Type
array