WC_REST_Authentication::instance
Provides access to the global WC_REST_Authentication instance.
Метод класса: WC_REST_Authentication{}
Хуков нет.
Возвращает
self.
Использование
$result = WC_REST_Authentication::instance(): self;
Код WC_REST_Authentication::instance() WC REST Authentication::instance WC 11.2.2
public static function instance(): self {
static $instance;
if ( ! isset( $instance ) ) {
$instance = new self();
}
return $instance;
}