WC_REST_Authentication::instance
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() WC REST Authentication::instance code WC 10.6.2
public static function instance(): self {
static $instance;
if ( ! isset( $instance ) ) {
$instance = new self();
}
return $instance;
}