WordPress.org

Ready to get started?Download WordPress

Forums

SB Welcome Email Editor
[resolved] Dont work for "Forgot password" (8 posts)

  1. dimitrow
    Member
    Posted 1 year ago #

    Hi, the plugin is great, but dont work for me.

    The plugin work fine for Welcome email, but wont for Forgot email. The WordPress send default email whatever I write.

    Any help ?

    http://wordpress.org/extend/plugins/welcome-email-editor/

  2. zitrusman
    Member
    Posted 1 year ago #

    Hey,
    thanks for your work!
    But Unfortunately i got the same issue as dimitrow.

    WP: 3.5.1 & Version 3.9 of your plugin.

    Any ideas?

  3. dimitrow
    Member
    Posted 1 year ago #

    I test everything and have no result. Please support team to help us !

  4. zitrusman
    Member
    Posted 1 year ago #

    Hey dimitrow.

    I just found a quick workaround for this Problem.
    It doesn't solve the problem from the plugin at all. And it's ONLY for the "Forgot Password Mail" and not multilinguale or anything fancy. ;)

    Put this code in your functions.php

    add_filter ("retrieve_password_message", "own_retrieve_password_message", 10, 2);
    function own_retrieve_password_message($message, $key) {
    	global $wpdb;
    	$user_login = $wpdb->get_var("SELECT <code>user_login</code> FROM <code>&quot;.$wpdb->users.&quot;</code> WHERE <code>user_activation_key</code>= '".$key."'");
    
    	ob_start();
    
    	include("email_header.php");
    
    	echo '<p>Text here</p>';
    
    	echo '<p>Maybe more Text</p>';
    
    	echo '<p>
    		Here comes the link:
    		<br>'.wp_login_url("url").'?action=rp&key='.$key.'&login='.$user_login.'
    	<p>';
    
    	include("email_footer.php");
    
    	$message = ob_get_contents();
    
    	ob_end_clean();
    
    	return $message;
    }
  5. dimitrow
    Member
    Posted 1 year ago #

    funcyion.php of WordPress core or funcyion.php of current theme?

  6. zitrusman
    Member
    Posted 1 year ago #

    function.php of current theme.

  7. Sean Barton
    Member
    Plugin Author

    Posted 1 year ago #

    Thanks guys. I will sort this out for the next version.

    thanks
    Sean

  8. auberlu
    Member
    Posted 1 year ago #

    Hello there.
    Same issue, zitrusman's solution isn't working.
    The default forgot password mail is sent instead of the custom one.
    Please consider this bug as a major ont to fix in the next ver.
    Thanks for your work.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic