How To Translate Wholesale Price Text

Due to the feature of our plugin to modify the “Wholesale Price:” texts on WooCommerce > Settings > Wholesale Prices > Price, it won’t be possible to translate it directly.

You’ll need to use a custom snippet to set the string in a translation wrapper before you can translate it using a translation plugin. Please copy the snippet below to your theme/child theme’s functions.php file:

add_filter( 'wwp_filter_wholesale_price_title_text' , 'my_filter_wholesale_price', 99 , 1 );
function my_filter_wholesale_price ( $titleText ) {

$settingTitleText = __('Wholesale Price:', 'woocommerce-wholesale-prices-premium');
return $settingTitleText;

}

Please take note that if you use this snippet, the feature to change the Wholesale Price Text will be disabled.

Questo articolo è stato utile?

Articoli Correlati

Serve Supporto?

Non trovi la risposta che cerchi?
Contatta il Supporto
Completa il tuo acquisto