246 in stock

wws Mr. Nashan / Managing Director Need Help? Contact Us via WhatsApp
SKU: 8834 Category:


Sometimes in WooCommerce API bulk operations (add/edit/delete) are restricted. So it will give a error like
“Sorry, you are not allowed to batch manipulate this resource. [woocommerce_rest_cannot_batch]”

To resolve this error, follow this steps:

  1. Install & activate Code Snippet plugin in wordpress. https://wordpress.org/plugins/code-snippets/
  2. Go to Snippet -> Add New and add a new snippet
  3. The snippet will have below written codes:add_filter( ‘woocommerce_rest_check_permissions’, ‘allow_bulk_operation’, 10, 4 ); function allow_bulk_operation( $permission, $context, $object_id, $type ) { return true; }
  4. Save & Activate it.

Now it will allow the bulk operation from API.

If you want to understand it better, check this link: https://wordpress.org/support/topic/restrict-endpoint-on-woocommerce-rest-api/

Reviews (0)

Be the first to review “Wilpattu”

Your email address will not be published. Required fields are marked *


There are no reviews yet.

See It Styled On Instagram

    No access token


Add to Cart


No products in the cart.