Automattic\WooCommerce\Internal\ProductFeed\Integrations\POSCatalog
POSIntegration::rest_api_init
Initialize the REST API.
Method of the class: POSIntegration{}
No Hooks.
Returns
null. Nothing (null).
Usage
$POSIntegration = new POSIntegration(); $POSIntegration->rest_api_init(): void;
POSIntegration::rest_api_init() POSIntegration::rest api init code WC 10.7.0
public function rest_api_init(): void {
// Only load the controller when necessary.
$this->container->get( ApiController::class )->register_routes();
}