• Hi, we need to make it work with other languages using WPML:
    Specificaly: Expiry Text Markup.

    Any ideas how to make it work for different languages different values?

Viewing 1 replies (of 1 total)
  • Danny

    (@daining1298)

    You can use the translate string “Expiry Date: “, then modify product-expiry-for-woocommerce.php

    //$text = str_replace(“%date%”, $formattedDate, $savedSettings[‘markup’]);

    //$text = apply_filters(‘wpml_translate_single_string’, $text, ‘product-expiry-for-woocommerce’, ‘date-markup’ );

    $text = __( ‘Expiry Date: ‘, ‘product-expiry-for-woocommerce’ ) . $formattedDate;

Viewing 1 replies (of 1 total)
  • The topic ‘Using WPML and translate Expiry Text Markup’ is closed to new replies.