bp_has_members_invitations( array|string $args = '' )
Initialize the community invitations loop.
Description Description
Based on the $args passed, bp_has_invitations() populates buddypress()->invitations->query_loop global, enabling the use of BP templates and template functions to display a list of invitations.
Parameters Parameters
- $args
-
(Optional) Arguments for limiting the contents of the invitations loop. Can be passed as an associative array, or as a URL query string. See BP_Invitations_Invitation::get() for detailed information on the arguments. In addition, also supports:
- 'max'
(int) Optional. Max items to display. Default: false. - 'page_arg'
(string) URL argument to use for pagination. Default: 'ipage'.
Default value: ''
- 'max'
Return Return
(bool)
Source Source
File: bp-members/bp-members-template.php
Changelog Changelog
Version | Description |
---|---|
8.0.0 | Introduced. |