Measurement Price Calculator Translate Labels
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function sv_mpc_measurement_label( $label ) { | |
return apply_filters( 'translate_string', $label, 'woocommerce-measurement-price-calculator', $label); | |
} | |
add_filter( 'wc_measurement_price_calculator_label', 'sv_mpc_measurement_label' ); | |
add_filter( 'wc_measurement_price_calculator_unit_label', 'sv_mpc_measurement_label' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks for sharing this. Hover it broke the translation. The correct code should be:
return apply_filters('translate_string', $label, 'woocommerce-measurement-price-calculator', $label);