Send a confirmation of user role upgrade conditionally

Quite possibly something like this might work; function user_role_update( $user_id, $new_role ) { $site_url = get_bloginfo(‘wpurl’); $user_info = get_userdata( $user_id ); if (user_can( $user_id, ‘capability’ ) ) { $to = $user_info->user_email; $subject = “Role changed: “.$site_url.””; $message = “Hello ” .$user_info->display_name . ” your role has changed on “.$site_url.”, congratulations you are now an ” … Read more

How to add usermeta to “Notice of Email Change” email message

The filter to use to modify the e-mail sent to a user when they change their e-mail address is email_change_email. Note that this is different from password_change_email which you’ve used in your original code. That filter allows you to modify the e-mail sent to the user when their password is changed. These two filters work … Read more

How to disable wordpress confirmation email for new users

I noticed the current answers are plugin based only. You can use wpmu_signup_user_notification to achieve this without installing a plugin. Add to your functions.php – this will disable user signup notifcations completely. add_filter( ‘wpmu_signup_user_notification’, ‘__return_false’ ); You can read more wpmu_signup_user_notification here: https://developer.wordpress.org/reference/functions/wpmu_signup_user_notification/

When a user creates a post (pending), send a confirmation link that allows them to publish

You need a function that hook into post status transitions and send and email containing a link with some verification variables and a function that takes that variables, check them and if all ok update posts status. Following code I think is self-explanatory, and comments give additional help: add_action(‘new_to_pending’, ‘send_approve_link’); add_action(‘draft_to_pending’, ‘send_approve_link’); add_action(‘auto-draft_to_pending’, ‘send_approve_link’); add_action(‘init’, … Read more

Get user id from email?

You are probably looking for the user_exists function. http://codex.wordpress.org/Function_Reference/email_exists This function will check whether or not a given email address ($email) has already been registered to a username, and returns that users ID (or false if none exists). If the email address does not exist (user_exists returns false), you may want to use the wp_create_user … Read more

Encrypt emails?

Your best bet would be a plugin called WP Mail SMTP, though it’s only marked as being compatible as of WP 3.2.1 (but it should reasonably work with WP 3.3.1). Just to define the process … Visitor enters site and fills out form on your page. User submits the form, which is transmitted to your … Read more