wp_create_application_password

動作鉤子
do_action( 'wp_create_application_password', $user_id, $new_item, $new_password, $args )
引數
  • (int) $user_id The user ID.
    Required:
  • (array) $new_item { The details about the created password. @type string $uuid The unique identifier for the application password. @type string $app_id A UUID provided by the application to uniquely identify it. @type string $name The name of the application password. @type string $password A one-way hash of the password. @type int $created Unix timestamp of when the password was created. @type null $last_used Null. @type null $last_ip Null. }
    Required:
  • (string) $new_password The unhashed generated application password.
    Required:
  • (array) $args { Arguments used to create the application password. @type string $name The name of the application password. @type string $app_id A UUID provided by the application to uniquely identify it. }
    Required:
定義位置
相關勾子
wp_create_application_password_formwp_update_application_passwordwp_delete_application_passwordrest_prepare_application_passwordwp_authorize_application_password_form
相關方法
wp_validate_application_passwordwp_authenticate_application_passwordwp_is_application_passwords_availablewp_is_application_passwords_supportedrest_application_password_check_errorsrest_add_application_passwords_to_index
引入
5.6.0
棄用
-

wp_create_application_password是 WordPress 中的一項功能,可讓您建立應用程式密碼。應用程式密碼是一種無需使用常規使用者名稱和密碼即可通過 WordPress 進行身份驗證的安全方式: 該函式為使用者的應用程式生成一個唯一的密碼,並將其儲存在資料庫中以備後用。

當建立一個應用程式的密碼時觸發。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
do_action( 'wp_create_application_password', $user_id, $new_item, $new_password, $args );
do_action( 'wp_create_application_password', $user_id, $new_item, $new_password, $args );
do_action( 'wp_create_application_password', $user_id, $new_item, $new_password, $args );

常見問題

FAQs
檢視更多 >