EruditionTec
Forum Replies Created
-
Forum: Plugins
In reply to: [Wallet for WooCommerce] API 401 ERRORHi,
Thanks for your valuable input. Well,about copy paste- I initially wanted to know if you are using the WooCommerce authentication method or the WordPress one as it’s a very common confusion faced by users.
Now, about the issue you mentioned, the permission is enabled for users with
manage_woocommercecapabilities. In order to bypass that, I am sharing a snippet of code. But please note this is not a problem or rather bug of the plugin, its a security protocol which we sincerely believe is important.About our support, I would kindle request you to have a glance at the support forum to know about how active we are and what level of willingness we have to help our users. With no offence intended to you, please have patience when you request for any resolution and let us understand your issue with more elaboration in order to provide the best support. I hope you get our point.
Thank you!
Here is your code snippet,
add_filter('woo_wallet_rest_check_permissions', 'woo_wallet_rest_check_permissions_callback'); function woo_wallet_rest_check_permissions_callback($allow_access) { if (is_user_logged_in()) { $allow_access = true; } return $allow_access; }