Action
rpress_user_verification_token_validated
Fires after a user account has been marked as verified.
Runs in rpress_process_user_account_verification() after the token has been validated and rpress_set_user_to_verified() has removed the pending-verification flag, and before the redirect. No arguments are passed; the user ID is available as the user_id query argument of the request.
Example#
function my_after_verification() {
$user_id = isset( $_GET['user_id'] ) ? absint( $_GET['user_id'] ) : 0;
if ( $user_id ) {
update_user_meta( $user_id, 'my_verified_at', time() );
}
}
add_action( 'rpress_user_verification_token_validated', 'my_after_verification', 10, 0 );
Source#
Fired from:
includes/user-functions.php(line 834), inrpress_process_user_account_verification()
See also#
Was this page helpful?
