pipit_members_send_email_verification()

Send a HTML email to the member containing an email verification URL.

pipit_members_send_email_verification($id_or_email);

The function makes a verification token available in the Perch email template. It is up to you how you include it in a URL.

Parameters

Type Description
Int/String Member ID or email address. Leave empty to target the logged in member.

Usage

Current version of the Perch Members app does not fire an event when a member is created. Ideally you’d listen to such an event:

$API->on('members.created', function(PerchSystemEvent $Event) use($API){
    pipit_members_send_email_verification($Event->subject->id());
});

If you have a custom app that integrates with Perch Members (e.g. Perch Shop customers are members and can fire an event when a new customer is created), you can rely on its events. Otherwise, you can use the Pipit Members form.

link