[ Index ]

PHP Cross Reference of BuddyPress




/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):

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.

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

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

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

Generated: Mon May 20 01:01:04 2024 Cross-referenced by PHPXref 0.7.1