rest_application_password_collect_status( WP_Error $user_or_error, array $app_password = array() )

In this article

Collects the status of authenticating with an application password.

Parameters

$user_or_errorWP_Errorrequired
The authenticated user or error instance.
$app_passwordarrayoptional
The Application Password used to authenticate.

Default:array()

Source

function rest_application_password_collect_status( $user_or_error, $app_password = array() ) {
	global $wp_rest_application_password_status, $wp_rest_application_password_uuid;

	$wp_rest_application_password_status = $user_or_error;

	if ( empty( $app_password['uuid'] ) ) {
		$wp_rest_application_password_uuid = null;
	} else {
		$wp_rest_application_password_uuid = $app_password['uuid'];
	}
}

Changelog

VersionDescription
5.7.0Added the $app_password parameter.
5.6.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.