Answers for "wp check if username exists"

PHP
0

check email exist or not wordpress

$email = '[email protected]';
$exists = email_exists( $email );
if ( $exists ) {
    echo "That E-mail is registered to user number " . $exists;
} else {
    echo "That E-mail doesn't belong to any registered users on this site";
}
Posted by: Guest on June-30-2020

Browse Popular Code Answers by Language