Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I am using theme my login plugin and want to replace message when people registered and it's redirect back to login page with displaying message at the top of the form.

Message: Your registration was successful but you must now confirm your email address before you can log in. Please check your email and click on the link provided.

I want to replace this message.

share|improve this question

1 Answer 1

up vote 3 down vote accepted

The below should work as is (with your strings for the new message and the theme's text domain), when inserted in your theme's functions.php:

function wpse71032_change_tml_registration_message( $translated_text, $text, $domain ) {
    if( $domain === 'theme-my-login' &&
        $text === 'Your registration was successful but you must now confirm your email address before you can log in. Please check your email and click on the link provided.'
    ) {
        /* in the below, change the first argument to the message you want
           and the second argument to your theme's textdomain */
        $translated_text = __( '%Registration Message%', 'theme_text_domain' );
    }
    return $translated_text;
}
add_filter( 'gettext', 'wpse71032_change_tml_registration_message', 20, 3 );

See the article on the gettext filter in the Filter Reference.

share|improve this answer
    
It is not changing the message. here what I have replaced if I am wrong somewhere $translated_text = __( 'Check your email Inbox or Junk/Spam folder for verification link', 'marinebox' ); //marinebox is my theme name –  pixelngrain Oct 31 '12 at 12:13
    
That was my mistake.. it's working now. Thanks a lot! –  pixelngrain Oct 31 '12 at 12:36

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.