Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi @wordplus
    You can write just add_filter('woocommerce_product_title', 'wpm_translate_string' );.
    For filtering product title I am using filter ‘woocommerce_product_get_name’. This filter using in get_name method.

    Thread Starter wordplus

    (@wordplus)

    I see, but woocommerce_product_get_name works bad with product variations for me:
    1. Displaying not translated strings of variations on Checkout Page
    2. Displaying non translated strings of variations in some 3rd party plugins, which using the WC_Product_Variation->get_title()

    Anyway adding filter to woocommerce_product_title works well, maybe something wrong just in my stack.

    Thanks!

    Ok. I will add this in next version.

    Added

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘WooCommerce improvement’ is closed to new replies.