BP_Suggestions::set_query( array $args = array() )
Set the parameters for the suggestions service query.
Description
Parameters
- $args
-
(Optional)
- 'limit'
(int) Maximum number of results to display. Optional, default: 16. - 'type'
(string) The name of the suggestion service to use for the request. Mandatory. - 'term'
(string) The suggestion service will try to find results that contain this string. Mandatory.
Default value: array()
- 'limit'
Source
File: bp-core/classes/class-bp-suggestions.php
public function set_query( array $args = array() ) { $this->args = wp_parse_args( $args, $this->default_args ); }
Changelog
Version | Description |
---|---|
BuddyPress 2.1.0 | Introduced. |
Questions?
We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.