rest_get_authenticated_app_password

函式
rest_get_authenticated_app_password ( No parameters )
返回值
  • (string|null) The Application Password UUID, or null if Application Passwords was not used.
定義位置
相關方法
wp_authenticate_email_passwordwp_authenticate_application_passwordwp_authenticate_username_passwordgenerate_random_passwordwp_generate_password
引入
5.7.0
棄用
-

rest_get_authenticated_app_password: 這個函式用來獲取REST API請求的認證應用密碼。它接收當前的請求物件並返回認證的應用程式密碼。

獲取用於驗證請求的應用密碼。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
function rest_get_authenticated_app_password() {
global $wp_rest_application_password_uuid;
return $wp_rest_application_password_uuid;
}
function rest_get_authenticated_app_password() { global $wp_rest_application_password_uuid; return $wp_rest_application_password_uuid; }
function rest_get_authenticated_app_password() {
	global $wp_rest_application_password_uuid;

	return $wp_rest_application_password_uuid;
}

常見問題

FAQs
檢視更多 >