WC_REST_Authentication::instance │ public static │ WC 1.0

Provides access to the global WC_REST_Authentication instance.

Метод класса: WC_REST_Authentication{}

Хуков нет.

Возвращает

self.

Использование

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

Код WC_REST_Authentication::instance() WC 11.2.2

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

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

	return $instance;
}