Skip to content

Instantly share code, notes, and snippets.

@timmyc
Created March 21, 2019 15:03
Show Gist options
  • Save timmyc/183927ce64e8979e49a4523c77e0bf17 to your computer and use it in GitHub Desktop.
Save timmyc/183927ce64e8979e49a4523c77e0bf17 to your computer and use it in GitHub Desktop.
Index: printful-shipping.php
===================================================================
--- printful-shipping.php (revision 2054638)
+++ printful-shipping.php (working copy)
@@ -63,7 +63,6 @@
require_once 'includes/class-printful-admin-support.php';
require_once 'includes/class-printful-size-chart-tab.php';
require_once 'includes/class-printful-size-chart-tab.php';
- require_once 'includes/class-printful-rest-api-controller.php';
//launch init
Printful_Taxes::init();
@@ -156,6 +155,7 @@
public function register_rest_routes()
{
+ require_once 'includes/class-printful-rest-api-controller.php';
$printfulRestAPIController = new Printful_REST_API_Controller();
$printfulRestAPIController->register_routes();
}
@kristapsPrintful
Copy link

Great catch, we've reviewed Woocommerce 3.6.0-rc.1 release and will adjust REST API controller initialization accordingly to support latest Woocommerce plugin version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment