rest_get_authenticated_app_password()WP 5.7.0

Gets the Application Password used for authenticating the request.

Хуков нет.

Возвращает

Строку|null. The Application Password UUID, or null if Application Passwords was not used.

Использование

rest_get_authenticated_app_password();

Заметки

  • Global. Строка|null. $wp_rest_application_password_uuid

Список изменений

С версии 5.7.0 Введена.

Код rest_get_authenticated_app_password() WP 6.5.2

function rest_get_authenticated_app_password() {
	global $wp_rest_application_password_uuid;

	return $wp_rest_application_password_uuid;
}