rest_get_authenticated_app_password() WordPress Function

The rest_get_authenticated_app_password() function is used to retrieve an authenticated app password for a given user. This is useful for allowing external applications to access your WordPress site data without needing to store a user's login credentials in the external application.

rest_get_authenticated_app_password() #

Gets the Application Password used for authenticating the request.


Return

(string|null) The Application Password UUID, or null if Application Passwords was not used.


Top ↑

Source

File: wp-includes/rest-api.php

function rest_get_authenticated_app_password() {
	global $wp_rest_application_password_uuid;

	return $wp_rest_application_password_uuid;
}


Top ↑

Changelog

Changelog
VersionDescription
5.7.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.

Show More