Cool, this also interests me
Special plug-ins such as Better Notifications for WordPress, allow you to send notifications only to registered users of WordPress, but not to guests. I do not have the knowledge php to do this
I use google translator
Hi @alexpetrov,
I’m the author of Better Notifications for WordPress.
In case it helps, you can use the ‘Send to Any Email’ add-on to send notifications to email addresses of non-WordPress users. You can find out more here: https://betternotificationsforwp.com/downloads/send-to-any-email/
Hope this helps!
Thanks,
Jack
//send mail when new ad is sent
/*add_action('publish_advert', 'on_publish_advert');
function on_publish_advert($post_id) {
wp_mail(get_option("admin_email"), "New Advert Published", "Advert with ID $post_id was published");
}*/