wpseek.com
Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren



rest_application_password_collect_status › WordPress Function

Seit5.6.0
Veraltetn/v
rest_application_password_collect_status ( $user_or_error, $app_password = array() )
Parameter: (2)
  • (WP_Error) $user_or_error The authenticated user or error instance.
    Erforderlich: Ja
  • (array) $app_password The Application Password used to authenticate.
    Erforderlich: Nein
    Standard: array()
Definiert in:
Codex:
Changelog:
  • 5.7.0

Collects the status of authenticating with an application password.



Quellcode

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'];
	}
}