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.

Was this article helpful?

Related Articles

Need Support?

Can't find the answer you're looking for?
Contact Support