Last active
January 25, 2023 23:43
-
-
Save andrewlimaza/7b90d1a4088ca00694c8df8889b81af5 to your computer and use it in GitHub Desktop.
gettext change 'state' to 'Province'
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
<?php | |
//copy lines 5 onwards into your 'PMPro Customizations' plugin - http://www.paidmembershipspro.com/create-a-plugin-for-pmpro-customizations/ | |
function pmproc_change_my_text( $translated_text, $text, $domain ) { | |
switch ( $translated_text ) { | |
case 'State' : | |
$translated_text = __( 'Province', 'paid-memberships-pro' ); | |
break; | |
} | |
return $translated_text; | |
} | |
add_filter( 'gettext', 'pmproc_change_my_text', 20, 3 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment