design.1
Forum Replies Created
-
Forum: Plugins
In reply to: [WooCommerce] WC_REST_Products_Controller return empty listIt turns out that the problem is with the permissions
For anyone finding the same problem you can use the following// Make read product avilable for all add_filter( 'woocommerce_rest_check_permissions', 'rm_woocommerce_rest_check_permissions_filter', 10, 4 ); function rm_woocommerce_rest_check_permissions_filter( $permission, $context, $object_id, $post_type ){ if($context == 'read' && in_array($post_type, ['product', 'product_variation', 'pa_color', 'pa_size', 'pa_fit'])) { $permission = true; } // filter... return $permission; }
Just modify the main plugin file
jwt-auth.phpreplace
new JWTAuth\Setup();to
add_action( ‘plugins_loaded’, function() { new JWTAuth\Setup(); } );This solves the problem for me
Just modify the main plugin file
jwt-auth.phpreplace
new JWTAuth\Setup();to
add_action( ‘plugins_loaded’, function() { new JWTAuth\Setup(); } );and
Add Contacts Form 7 for the white listThis solves the problem for me
- This reply was modified 3 years, 4 months ago by design.1.
E-Mail entry is not problematic
The problem is to enter the phone number or any meta fieldI have changed the way to check WordPress for username verification
— replace wordpress authentication
— Through this filter: authenticateI will search for the code that I modified and I will share it with you