Started work on order projects
This commit is contained in:
@@ -16,6 +16,9 @@ class Wiaas_Order {
|
||||
private static $object_order_type = 'shop_order';
|
||||
|
||||
public static function init() {
|
||||
|
||||
require_once dirname( __FILE__ ) . '/order/class-wiaas-order-project.php';
|
||||
|
||||
add_action('woocommerce_new_order', array( __CLASS__, 'assign_order_to_organization' ));
|
||||
|
||||
add_filter('woocommerce_rest_check_permissions', array( __CLASS__, 'check_order_access'), 10, 4);
|
||||
|
||||
Reference in New Issue
Block a user