[ Index ]

PHP Cross Reference of BuddyPress

title

Body

[close]

/src/bp-core/classes/ -> class-bp-members-suggestions.php (summary)

Core component classes.

File Size: 139 lines (4 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

BP_Members_Suggestions:: (2 methods):
  validate()
  get_suggestions()


Class: BP_Members_Suggestions  - X-Ref

Adds support for user at-mentions to the Suggestions API.

This class is in the Core component because it's required by a class in the Groups component,
and Groups is loaded before Members (alphabetical order).

validate()   X-Ref
Validate and sanitise the parameters for the suggestion service query.

since: 2.1.0
return: true|WP_Error If validation fails, return a WP_Error object. On success, return true (bool).

get_suggestions()   X-Ref
Find and return a list of username suggestions that match the query.

since: 2.1.0
return: array|WP_Error Array of results. If there were problems, returns a WP_Error object.



Generated: Mon Jul 22 01:01:43 2019 Cross-referenced by PHPXref 0.7.1