Hi,
Creating a new user by running:
wp user create testuser "email@example.com" --display_name="First Last" --first_name="First" --last_name="Last"
Sends an email to email@example.com which notifies the user of a password change:
Hi testuser,
This notice confirms that your password was changed on Second Site.
If you did not change your password, please contact the Site Administrator at xxxx
This email has been sent to email@example.com
Regards,
All at Second Site
http://debian.vm/second"
The wp-cli docs state that --send-email can be supplied to send an email. I didn't include that switch as I didn't want to send any email at all. I imagine this is a side affect of wp-cli setting the password.
Is there a way to prevent sending any email at all when creating a user? Is this a WP thing that is out of wp-cli's control?
Thanks,
Steve
Hi,
Creating a new user by running:
wp user create testuser "email@example.com" --display_name="First Last" --first_name="First" --last_name="Last"Sends an email to
email@example.comwhich notifies the user of a password change:The wp-cli docs state that --send-email can be supplied to send an email. I didn't include that switch as I didn't want to send any email at all. I imagine this is a side affect of wp-cli setting the password.
Is there a way to prevent sending any email at all when creating a user? Is this a WP thing that is out of wp-cli's control?
Thanks,
Steve