Tips / Recommendations

Woocommerce rest check permissions

REST-API WOOCOMERCE

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; }

редирект со страницы на страницу

RewriteCond %{QUERY_STRING} ^_route_=login/$
RewriteRule ^(.*)$ http://liga-spice.com.ua/? [R=301,L]

Leave a Reply

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

five × 4 =