pipit_members_verify_email_token()

Verify the token the member received in the email verification message. Optionall add/remove tags on success.

pipit_members_verify_email_token($token, $add_tag='', $remove_tag='');

Note the member does not have to be logged in.

Parameters

Type Description
String token
String A comma-separated list of tags to add
String A comma-separated list of tags to remove

Return

Boolean

Usage

If your verification page URL is /verify?token={some-token-here}, you would use something like this:

$is_verified = pipit_members_verify_token(perch_get('token'));

// add a tag on success
$is_verified = pipit_members_verify_token(perch_get('token'), 'emailverified');

// add multiple tags on success
$is_verified = pipit_members_verify_token(perch_get('token'), 'emailverified,unicorn');

// remove a tag on success
$is_verified = pipit_members_verify_token(perch_get('token'), '', 'pending');
link