BP_Groups_Invitation_Manager::allow_request( $args )

Should this request be created?


Description Description


Parameters Parameters

$args.

(Required)


Top ↑

Return Return

(bool.)


Top ↑

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

Top ↑

Changelog Changelog

Changelog
Version Description
5.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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