Tag Info

New answers tagged

-1

I had an instance where I needed to send multiple emails any time a new user registered as there were a few different processes that needed to happen to onboard a new user. I accomplished this by adding a custom options page and custom fields to hold the email addresses so they could be easily changed, then hooking to the user_register event and gathering ...


0

you can make a plugin out of the following code that removes an email from the recipients list and network activate it function wpse158530_filter_emails($emails,$cid) { if (count($emails) > 1) { // you don't want to remove yourself if you are the author as well as admin // based on ...


1

WordPress cannot resend the existing password, because it does not know the existing password. Passwords are not stored as plain text, they are stored using a one-way hash. They cannot be decrypted and resent. They can be reset to something entirely new, and you can send that, but you can't send what you don't know in advance. Passwords should not be ...


1

You can use transition_post_status function, then fetch users and send an email to all users. Here is a sample code, it's not tested. But it will get you started with this. function wcs_send_mail_on_publish_category_posts( $new_status, $old_status, $post ) { global $post; if ( 'publish' !== $new_status or 'publish' === $old_status ) return; ...



Top 50 recent answers are included