BP_Groups_Invitation_Manager::allow_request( $args )
Should this request be created?
Description
Parameters
- $args.
-
(Required)
Return
(bool.)
Source
File: bp-groups/classes/class-bp-groups-invitation-manager.php
public function allow_request( $args ) { // Does the requester have this capability? (Also checks for duplicates.) if ( ! bp_user_can( $args['user_id'], 'groups_request_membership', array( 'group_id' => $args['item_id'] ) ) ) { return false; } return true; }
Changelog
Version | Description |
---|---|
BuddyBoss 1.3.5 | 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.