How to send mail to subscribers using wp_mail
You were on the right track when you built your WP_User_Query, but you are not using the result of this query. See this: //verify post is not a revision if ( !wp_is_post_revision( $post_id ) ) { //gets subscirbers to send email to // WP_User_Query arguments $args = array ( ‘role’ => ‘Subscriber’, ); // The … Read more