WooCommerce improvement
-
Many 3rd party woocommerce plugins using function:
WC_Product->get_title
to display title which not applyingthe_title
filter.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_title
filter:
https://plugins.trac.wordpress.org/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.