WC_REST_Authentication::check_authentication_error( WP_Error|null|bool $error )

Check for authentication error.


Description Description


Parameters Parameters

$error

(Required) Error data.


Top ↑

Return Return

(WP_Error|null|bool)


Top ↑

Source Source

File: includes/class-wc-rest-authentication.php

	public function check_authentication_error( $error ) {
		// Pass through other errors.
		if ( ! empty( $error ) ) {
			return $error;
		}

		return $this->get_error();
	}


Top ↑

User Contributed Notes User Contributed Notes

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