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请求的认证应用密码。它接收当前的请求对象并返回认证的应用程序密码。

获取用于验证请求的应用密码。

function rest_get_authenticated_app_password() {
	global $wp_rest_application_password_uuid;

	return $wp_rest_application_password_uuid;
}

常见问题

FAQs
查看更多 >
闪电伯伯

(工作日 10:00 - 18:30 为您服务)

2025-11-19 09:27:50

您好,无论是售前、售后、意见建议……均可通过联系工单与我们取得联系。

您也可选择聊天工具与我们即时沟通或点击查看:

您的工单我们已经收到,我们将会尽快跟您联系!
取消
选择聊天工具: