WooCommerce improvement
-
Many 3rd party woocommerce plugins using function:
WC_Product->get_titleto display title which not applyingthe_titlefilter.Need to add new filter in your plugin for better compability:
add_filter('woocommerce_product_title', 'translate_woocommerce_title', 10, 2); function translate_woocommerce_title( $title, $product ){ return wpm_translate_string($title); }woocommerce_product_titlefilter:
https://plugins.trac.ww.wp.xz.cn/browser/woocommerce/trunk/includes/abstracts/abstract-wc-product.php#L1630Thanks!
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
The topic ‘WooCommerce improvement’ is closed to new replies.