Send user activation email when programmatically creating user

I wondered if someone here might be able to help. Basically, I’ve created a custom registration form that when validated, inserts a user to the user table. function _new_user($data) { // Separate Data $default_newuser = array( ‘user_pass’ => wp_hash_password( $data[‘user_pass’]), ‘user_login’ => $data[‘user_login’], ‘user_email’ => $data[‘user_email’], ‘first_name’ => $data[‘first_name’], ‘last_name’ => $data[‘last_name’], ‘role’ => ‘pending’ … Read more

How do you access the Product Short Description in a WooCommerce email template? [closed]

Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it’s on-topic for WordPress Development Stack Exchange. Closed 6 years ago. Improve this question I would like to output the Product Short Description beneath the product name inside the order items table inside WooCommerce emails. … Read more

How do you update user_email on the front end in WP 3.3?

I am using the following code and everything in the user profile is updating except the user’s email. In the template: global $current_user, $wp_roles; get_currentuserinfo(); /* Load the registration file. */ require_once( ABSPATH . WPINC . ‘/registration.php’ ); /* If profile was saved, update profile. */ if ( ‘POST’ == $_SERVER[‘REQUEST_METHOD’] && !empty( $_POST[‘action’] ) … Read more

How do I customise the new user welcome email

How can I customise the the new user welcome email ? I tried ‘http://www.sean-barton.co.uk/wordpress-welcome-email-editor/’ however it conflicts with some of the other plugins I need to use, Cimy Extra Fields. There is one other plugin that is to old for wordpress 3.0.1. Will 1 1 SB Welcome Email Editor works by replacing wp_new_user_notification() with an … Read more

Can I set subject/content of email using mailto:?

Is it possible to set the subject/content of email when I use mailto:? 13 s 13 Yes, look all tips and tricks with mailto: http://www.angelfire.com/dc/html-webmaster/mailto.htm mailto subject example: <a href=”https://stackoverflow.com/questions/4782068/mailto:[email protected]?subject=free chocolate”>example</a> mailto with content: <a href=”mailto:[email protected]?subject=look at this website&body=Hi,I found this website and thought you might like it http://www.geocities.com/wowhtml/”>tell a friend</a> As alluded to in … Read more

Confirmation required on email change

I’m just wondering why wordpress doesn’t send confirmation mail every time user change his/her email address. How do we know that email address is not fake or mistyped? So can anyone give me some snippet to implement this function? Update: Here is the idea. user changes his/her mail We send confirmation email. If the user … Read more

get_user_meta() doesn’t include user email?

I simply wonder why <?php var_dump(get_user_meta(4)); ?> doesn’t contain an email address of the user. Instead I have to use get_userdata(4)->user_email; to query the email of the user. Why is that or did I miss something? get_user_meta() seems to provide all other aspects and informations of a user, however just not the email-address. Matt 2 … Read more

Do something after sending email

I want to do something after WordPress sent an email. For example, after sending “Reset Password” email using wp_mail() function. 1 1 Using the PHPMailer class with an action callback: I did some digging into the PHPMailer class and found that it supports a custom action. Here’s how the callback is activated with the doCallback() … Read more