bp_get_members_invitations_allowed()

Are users allowed to invite users to join this site?


Return Return

(bool)


Source Source

File: bp-members/bp-members-template.php

function bp_get_members_invitations_allowed() {
	/**
	 * Filters whether or not community invitations are allowed.
	 *
	 * @since 8.0.0
	 *
	 * @param bool $allowed Whether or not community invitations are allowed.
	 */
	return apply_filters( 'bp_get_members_invitations_allowed', bp_is_active( 'members', 'invitations' ) && (bool) bp_get_option( 'bp-enable-members-invitations' ) );
}


Top ↑

Changelog Changelog

Changelog
Version Description
8.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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