Set register_rest_route override to TRUE

This commit is contained in:
Mike Jolley 2019-05-08 11:27:26 +01:00
parent be737d6f9e
commit 6c3e1bbd01
4 changed files with 16 additions and 8 deletions

View File

@ -41,7 +41,8 @@ class WC_REST_Blocks_Product_Attribute_Terms_Controller extends WC_REST_Product_
'args' => $this->get_collection_params(),
),
'schema' => array( $this, 'get_public_item_schema' ),
)
),
true
);
register_rest_route(
@ -67,7 +68,8 @@ class WC_REST_Blocks_Product_Attribute_Terms_Controller extends WC_REST_Product_
),
),
'schema' => array( $this, 'get_public_item_schema' ),
)
),
true
);
}

View File

@ -41,7 +41,8 @@ class WC_REST_Blocks_Product_Attributes_Controller extends WC_REST_Product_Attri
'args' => $this->get_collection_params(),
),
'schema' => array( $this, 'get_public_item_schema' ),
)
),
true
);
register_rest_route(
@ -67,7 +68,8 @@ class WC_REST_Blocks_Product_Attributes_Controller extends WC_REST_Product_Attri
),
),
'schema' => array( $this, 'get_public_item_schema' ),
)
),
true
);
}

View File

@ -41,7 +41,8 @@ class WC_REST_Blocks_Product_Categories_Controller extends WC_REST_Product_Categ
'args' => $this->get_collection_params(),
),
'schema' => array( $this, 'get_public_item_schema' ),
)
),
true
);
register_rest_route(
@ -67,7 +68,8 @@ class WC_REST_Blocks_Product_Categories_Controller extends WC_REST_Product_Categ
),
),
'schema' => array( $this, 'get_public_item_schema' ),
)
),
true
);
}

View File

@ -41,7 +41,8 @@ class WC_REST_Blocks_Products_Controller extends WC_REST_Products_Controller {
'args' => $this->get_collection_params(),
),
'schema' => array( $this, 'get_public_item_schema' ),
)
),
true
);
register_rest_route(
@ -67,7 +68,8 @@ class WC_REST_Blocks_Products_Controller extends WC_REST_Products_Controller {
),
),
'schema' => array( $this, 'get_public_item_schema' ),
)
),
true
);
}