Forked from andrewlimaza/change_text_pmpro_advanced_levels.php
Last active
September 2, 2021 17:46
-
-
Save kimwhite/de09edcb1ff95431e4500cfafc2a3249 to your computer and use it in GitHub Desktop.
Change text for 'Return To Account' for PMPro Membership Card Page
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 | |
/** | |
* Change text for the Return To Home and Return to Account for PMPro Advanced Levels add-on. | |
* Add the following code to your PMPro Customizations Plugin - https://www.paidmembershipspro.com/create-a-plugin-for-pmpro-customizations/ | |
*/ | |
function pmpro_change_text_for_card( $translated_text, $text, $domain ){ | |
switch ( $translated_text ) { | |
case '← Return to Your Account' : | |
$translated_text = __( 'Change text to desired text', 'pmpro-membership-card' ); | |
break; | |
} | |
return $translated_text; | |
} | |
add_filter( 'gettext', 'pmpro_change_text_for_card', 20, 3 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment