Finished!

ID; $user_hash = get_user_meta( $subscriber_id, 'hash', true ); if( $user_hash == $_GET['hash'] ) { $match = 1; $matched_user_id = $subscriber_id; } } if($match > 0){ update_user_meta($matched_user_id,'activated','true'); echo '

Your account has been activated, you can now login with password we sent you in the mail

'; }else{ // No match -> invalid url or account has already been activated. echo '

The url is either invalid or you already have activated your account.

'; } }else{ // Invalid approach echo '

Invalid approach, please use the link that has been send to your email.

'; }