Last active
December 15, 2022 22:47
-
-
Save femiyb/b182c3805562cea4482856b2b50c3018 to your computer and use it in GitHub Desktop.
Change text
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 | |
// Add this code below to your PMPro Customizations plugin - http://www.paidmembershipspro.com/create-a-plugin-for-pmpro-customizations/ | |
add_filter( 'gettext', 'change_my_text_example', 20, 3 ); | |
/** | |
* @link http://codex.wordpress.org/Plugin_API/Filter_Reference/gettext | |
*/ | |
function change_my_text_example( $translated_text, $text, $domain ) { | |
switch ( $translated_text ) { | |
case "Check your email for a link to reset your password." : | |
$translated_text = __( 'Translated text here', 'paid-memberships-pro' ); | |
break; | |
} | |
return $translated_text; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment