Tag Info

New answers tagged

1

Giri's response didn't work for me. I had to tweak mine to make it work (Wordpress 3.5) function cleanup_verify_email_change() { global $errors, $wpdb; $current_user = wp_get_current_user(); // don't execute this if they're trying to dismiss a pending email change if (in_array($GLOBALS['pagenow'], array('profile.php')) && ...


0

You can use this hook to send a mail to your old email address <?php add_action( 'profile_update', 'my_profile_update', 10, 2 ); function my_profile_update( $user_id, $old_user_data ) { //Load new user data by uid and compare with old data // Email code about profile changes } ?> I think this should work for you.


0

That file didnt work for me I had to it in wp-includes/pluggable.php if ( isset( $atts['message'] ) ) { //$message = $atts['message']; $blogname = wp_specialchars_decode(get_option('blogname'), ENT_QUOTES); $subject = str_replace("[".$blogname."] - ", "", $subject); $subject = str_replace("[".$blogname."]", "", $subject); }


5

Here's one way to add this feature using the following flowline : The admin updates the user option page: -> edit_user_profile_update or personal_options_update hooks activated -> edit_user() function is called -> wp_update_user() function is called within edit_user() -> wp_insert_user() function is called within wp_update_user() ...


1

There are a few ways to accomplish this; 1) [easy] Send your user to the login screen and have them initiate the forgot password process 2) [moderate] Plugins (there are a few) free WordPress plugins, this looks useful, or you could search http://wordpress.org/plugins/search.php?q=reset+password and probably lots of commercial ones, but here is one 3) ...


1

I think you're looking for the retrieve_password_title filter. For example: add_filter( 'retrieve_password_title', function( $title ) { $title = __( 'WPSE Custom Password Reset' ); return $title; } );


2

From: is just another mail header. You need to concatenate this with your current $headers and pass it as one argument to mail(): $headers = "From: $sender <$senderEmail>\r\n"; $headers .= "MIME-Version: 1.0\r\n"; $headers .= "Content-type: text/html; charset=iso-8859-1\r\n"; // la de da mail( $recipient, $subject, $mailBody, $headers );



Top 50 recent answers are included