Wholesale2b dropship Help

Dropship Learning Center

Have a question about our drop shipping services?

HOW TO FIX WOOCOMMERCE STORE 401 UNAUTHORIZED ERROR

We recently observed that some of our members having WooCommerce store facing sync issue with wholesale2b & in such case our system get following error WooCommerce REST API from member's store -
401 UNAUTHORIZED ERROR

Here is the proposed solution to fix the problem -
add_filter( 'woocommerce_rest_check_permissions', 'my_woocommerce_rest_check_permissions', 90, 4 );

function my_woocommerce_rest_check_permissions( $permission, $context, $object_id, $post_type ){
return true;
}

You may read further about this at following URLs -
Here
Here and
Here

Most wordpress Themes come with a child theme where modifications can be made. You may add the the code to the functions.php file which resides in the child theme directory.

wp-content
-themes
--{theme}
--{theme child}
---functions.php

Reference

Disclaimer: We did not tested this solution our self. So try this solution on your own risk and, if and only if you are getting same error.


If you still want to contact us please login to your account and from top click "Contact Us".
Enjoy Your Free Dropship Account With No Time Limit

Take Your Time To Review Our Products & Suppliers

REGISTER FOR FREE

No Credit Card Needed