Skip to content

Instantly share code, notes, and snippets.

@JudeRosario
Last active August 29, 2015 14:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JudeRosario/279d86f7a92c59b66fc6 to your computer and use it in GitHub Desktop.
Save JudeRosario/279d86f7a92c59b66fc6 to your computer and use it in GitHub Desktop.
Custom Signup Text (wp-signup.php)
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&#8217;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&#8217;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 );
@JudeRosario
Copy link
Author

Just copy/paste the code into the functions.php file of your child theme or a site specific plugin if you use one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment