• Resolved krispvisions

    (@krispvisions)


    I’m using the latest version of WP Adverts – 1.1.1 – and I’m looking for a way to email or alert an administrator to review an ad when it’s submitted. I am using shortcode “[adverts_add moderate=”1″]” already and it’s working well. It would be extremely helpful to be alerted when there is a new ad to review. Does this functionality exist for WP Adverts plugin?

Viewing 1 replies (of 1 total)
  • Plugin Author Greg Winiarski

    (@gwin)

    Hi, by default there is no such feature, however with some custom programming you can send a notification to admin when Advert status changes to pending, for example the code below should do that

    
    add_filter("pending_advert", "on_pending_advert");
    function on_pending_advert($id, $post) {
        wp_mail(get_option("admin_email"), "New Pending Ad", "New Pending Ad"); 
    }
    

    See https://codex.www.ads-software.com/Post_Status_Transitions

Viewing 1 replies (of 1 total)
  • The topic ‘Email admin for moderation/approval?’ is closed to new replies.