Last active
August 29, 2015 14:21
-
-
Save JudeRosario/279d86f7a92c59b66fc6 to your computer and use it in GitHub Desktop.
Custom Signup Text (wp-signup.php)
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
function custom_wp_signup_text( $translated_text, $untranslated_text, $domain ) { | |
global $pagenow; | |
if ( is_multisite() && $pagenow === 'wp-signup.php' ) { | |
switch ( $untranslated_text ) { | |
case 'Welcome back, %s. By filling out the form below, you can <strong>add another site to your account</strong>. There is no limit to the number of sites you can have, so create to your heart’s content, but write responsibly!' : | |
$translated_text = __( 'Welcome back, %s. By filling out the form below, you can add another site to your account.' , 'theme_text_domain' ); | |
break; | |
case 'If you’re not going to use a great site domain, leave it for a new user. Now have at it!' : | |
$translated_text = __( ' ' , 'theme_text_domain' ); | |
break; | |
} | |
} | |
return $translated_text; | |
} | |
add_filter( 'gettext', 'custom_wp_signup_text', 20, 3 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Just copy/paste the code into the
functions.php
file of your child theme or a site specific plugin if you use one.