WC_REST_Authentication::instancepublic staticWC 1.0

Provides access to the global WC_REST_Authentication instance.

Method of the class: WC_REST_Authentication{}

No Hooks.

Returns

self.

Usage

$result = WC_REST_Authentication::instance(): self;

WC_REST_Authentication::instance() code WC 9.8.5

public static function instance(): self {
	static $instance;

	if ( ! isset( $instance ) ) {
		$instance = new self();
	}

	return $instance;
}