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.
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; }
Expand full source code Collapse full source code View on Trac
Changelog Changelog
Version | Description |
---|---|
8.0.0 | Introduced. |