random_password

過濾鉤子
apply_filters( 'random_password', $password, $length, $special_chars, $extra_special_chars )
引數
  • (string) $password The generated password.
    Required:
  • (int) $length The length of password to generate.
    Required:
  • (bool) $special_chars Whether to include standard special characters.
    Required:
  • (bool) $extra_special_chars Whether to include other special characters.
    Required:
定義位置
相關勾子
lost_passwordretrieve_passwordallow_password_resetcheck_passwordcheck_passwords
相關方法
generate_random_passwordreset_passwordrandomcompat_substrwp_hash_passwordretrieve_passwordthe_post_password
引入
5.3.0
棄用
-

random_password – 這是一個生成隨機密碼的函式: 這個函式在為新使用者自動生成密碼或重設密碼時很有用。

對隨機生成的密碼進行過濾。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
return apply_filters( 'random_password', $password, $length, $special_chars, $extra_special_chars );
return apply_filters( 'random_password', $password, $length, $special_chars, $extra_special_chars );
return apply_filters( 'random_password', $password, $length, $special_chars, $extra_special_chars );

常見問題

FAQs
檢視更多 >