bp_members_invitation_resend_by_id( int $id )

Resend a membership invitation email by id.


Parameters Parameters

$id

(int) (Required) ID of the invitation to resend.


Top ↑

Return Return

(bool) True on success, false on failure.


Source Source

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

function bp_members_invitation_resend_by_id( $id = 0 ) {

	// Find the invitation before resending it.
	$existing_invite = new BP_Invitation( $id );
	$invites_class   = new BP_Members_Invitation_Manager();
	$success         = $invites_class->send_invitation_by_id( $id );

	if ( ! $success ) {
		return $success;
	}

	/**
	 * Fires after the re-sending of a network invite.
	 *
	 * @since 8.0.0
	 *
	 * @param BP_Invitation $existing_invite The invitation that was resent.
	 */
	do_action( 'bp_members_invitations_resend_invitation', $existing_invite );

	return $success;
}


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.