rest_application_password_collect_status()

最后更新于:2021-11-27 23:33:11

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

Collects the status of authenticating with an application password.

参数

$user_or_error

(GC_Error) (Required) The authenticated user or error instance.

$app_password

(array) (Optional) The Application Password used to authenticate.

Default value: array()

源文件

文件: gc-includes/rest-api.php

function rest_application_password_collect_status( $user_or_error, $app_password = array() ) {
	global $gc_rest_application_password_status, $gc_rest_application_password_uuid;

	$gc_rest_application_password_status = $user_or_error;

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