WELCOME TO WHOLESALE2B DROPSHIP KNOWLEDGE DESK

Have a question about our drop shipping services?
Ask or enter a simple search term



Example: How to, what can, quick solution, fixing issue

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".

STILL HAVE QUESTIONS?

Please login to your Wholesale2b account and click on the   CONTACT  link to submit a support ticket

We answer all support tickets within 24 hours or less

LOGIN

Latest from our blog

Checkout Our Drop Ship Blog

3 EASY STEPS TO START YOUR DROPSHIP BUSINESS

1

Signup For A Free Account

GET STARTED »

2

Review Our Dropship Products

Take your time and browse our dropship categories

3

Activate a Dropship Plan

If you like the products, activate a plan and start selling


Wholesale2b is a leader in provision of wholesale dropship products and dropship selling tools. Our mission is to help our members achieve success with efficient and user friendly tools.
We offer product sourcing, order fulfillment, handling of returns, listing tools for eBay, Amazon, BigCommerce, Shopify, E-commerce sites and data feeds for marketplaces & shopping carts.