[Plugin: WooCommerce Multilingual – run WooCommerce with WPML] Add filter for checkout page ID
-
A filter for the checkout page ID should be added. I think this was simply forgotten. Here is the code:
add_filter('woocommerce_get_checkout_page_id', 'wpml_checkout_page_id'); function wpml_checkout_page_id(){ return icl_object_id(get_option('woocommerce_checkout_page_id'), 'page', true); }
Thank you!
https://www.ads-software.com/extend/plugins/woocommerce-multilingual/
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘[Plugin: WooCommerce Multilingual – run WooCommerce with WPML] Add filter for checkout page ID’ is closed to new replies.