BP_Suggestions::set_query( array $args = array() )

Set the parameters for the suggestions service query.


Description Description


Parameters 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()


Top ↑

Source 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 );
	}

Top ↑

Changelog Changelog

Changelog
Version Description
2.1.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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