Created
March 18, 2019 08:10
-
-
Save andrewlimaza/390ff00953dd4c63c83378dc2468ef1a to your computer and use it in GitHub Desktop.
Translate PMPro to French
This file contains hidden or 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
<?php | |
// Please add this code to your PMPro Customizations Plugin - https://www.paidmembershipspro.com/create-a-plugin-for-pmpro-customizations/ | |
function my_pmpro_translate_to_french($translated_text, $original_text, $domain) { | |
switch ( $translated_text ) { | |
case 'Security Code (CVC)' : | |
$translated_text = __( 'Change this.', 'paid-memberships-pro' ); | |
break; | |
} | |
return $translated_text; | |
} | |
add_filter( 'gettext', 'my_pmpro_translate_to_french', 10, 3 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment