email_exists

過濾鉤子
apply_filters( 'email_exists', $user_id, $email )
引數
  • (int|false) $user_id The user ID associated with the email, or false if the email does not exist.
    Required:
  • (string) $email The email to check for existence.
    Required:
定義位置
相關勾子
domain_existsusername_existsphpmailer_initemail_change_emailadded_existing_user
相關方法
email_existsdomain_existsterm_existstag_existsusername_existsmetadata_exists
引入
5.6.0
棄用
-

email_exists: 這個函式檢查一個給定的電子郵件地址是否存在於註冊使用者的資料庫中。如果電子郵件存在,該函式返回使用者ID,如果不存在,則返回false。

過濾給定的電子郵件是否存在。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
return apply_filters( 'email_exists', $user_id, $email );
return apply_filters( 'email_exists', $user_id, $email );
return apply_filters( 'email_exists', $user_id, $email );

常見問題

FAQs
檢視更多 >