Tag Info

New answers tagged

0

Although I haven't tested it, a quick search revealed this (new) plugin which claims to do what you want: https://wordpress.org/plugins/publish-post-email-notification/ Publish post notification is plugin which will send automatic email when the post is published and approved by WordPress blog. admin have to go to setting and set email template thats it ...


0

It has probably more systematical solution, but one option is to save the highest recipient ID, and then load only higher IDs next time. Something like this: (not tested) $last_id = get_option('last_recipient_id'); $rcvr_id = $wpdb->get_results( $wpdb->prepare("SELECT ID FROM wp_users WHERE ID > %d ORDER BY ID "), $last_id ) ; foreach($rcvr_id as ...


0

This solution is based on a couple of WPMU Dev plugins: PopUp Pro and Mailchimp Integration. If you are WPMU Dev member then download and install them either from their Project pages or via the WPMU Dev dashboard in your WordPress admin interface. Most of the effort is in creating a custom style for the popup. The Mailchimp Integration plugin simply provides ...


0

The wp_new_user_notification function is pluggable, so you can override it by defining your own. You should be able to copy the entire function from wp-includes/pluggable.php into your plugin (or functions.php) and remove the line that sends out the email.


0

Actually it depends how you create the new user. If you do it from administration - Users - Add New you are right. In 4.3 unfortunatelly you cannot disable sending the notification email. But if you really want to create a new user without the email, there is a way. You can create a small plugin where you'd create a new account by yourself via ...


0

If you have registered that CPT and added uploads functionality, then you can write email functionality in that only. However, if it comes from any other plugin or theme, then either you will need to edit its code or create a plugin if sufficient hook is available. If there is no custom hook available and you are going to use some generic WordPress hook ...


0

I had the same problem. For me it came out that the hosting provider (BlueHost) was preventing from changing the from field. Here they explain it https://my.bluehost.com/cgi/help/206 . I fixed the problem by adding the email to cPanel mailboxes just as they say.


0

There are several plugins that do this, but bear in mind they will disable wp_mail completely so even password reminders/reset etc will not be sent. stop email plugin or disable plugin


0

Post authors are notified of new comments by default; there are several plugins that modify this behavior. See wp_notify_postauthor. You can hook into comment_notification_recipients and add an aribtrary list of recipients as described here. Then you could create a metabox or dashboard widget to manage the recipient list. Keep in mind that this ...


1

First, you should know that current_user_can() only accepts capabilities, not roles, so you are using it wrong and you can end up with unexpected results. That being said, to exlude users form WP_User_Query you can use the exclude parameter: // Get current user data $user = wp_get_current_user(); // Check if current user is a subscriber if( ! empty( $user ...


-1

Following should works for you:- if( current_user_can('read')) { $exclude_user = array(); $exclude_user[] =get_current_user_id(); $args = array( 'role' => 'subscriber', 'exclude' => $exclude_user ); $user_query = new WP_User_Query( $args); foreach ( $user_query->results as $user ) { $mail=$user->user_email; ...



Top 50 recent answers are included