Created
September 25, 2020 08:26
-
-
Save JarrydLong/3ac2182a89828e5483ff6fd0db3f2805 to your computer and use it in GitHub Desktop.
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 | |
/** | |
* This recipe will change the default Username text to Ham Radio Callsign | |
* | |
* You can add this recipe to your site by creating a custom plugin | |
* or using the Code Snippets plugin available for free in the WordPress repository. | |
* Read this companion article for step-by-step directions on either method. | |
* https://www.paidmembershipspro.com/create-a-plugin-for-pmpro-customizations/ | |
*/ | |
function mypmpro_change_username_text( $translated, $text, $domain ){ | |
if( $text == 'Username or Email Address' || $text == 'Username' ){ | |
$text = 'Ham Radio Callsign'; | |
} | |
return $text; | |
} | |
add_filter( 'gettext', 'mypmpro_change_username_text', 10, 3 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment