Transactional E-mails
-
Hi, Greg – Great plugin you have, congratulations.
I’m setting up the plugin at my website and most of all are working fine. I’ve bought the add-ons and I’m still learning to deal with it.
Searching at the forum and the snippets I’ve found the code to notice admins when a new ad is sent and needs approval. Fine!
But… When the ad is approved, would be good notice to the user. Could you help me at this way? I’m searching and reading all the titles at the support pages. There’s so much help from you and the WP Adverts users…!
I suggest we can gather the codes to transactional emails or save snippets to help other users – or add a section to Documentation.
Thanks for your attention!
I’m using the code below:
/* sending an e-mail when a new ad is sent and needs approval add_action('pending_advert', 'on_pending_advert'); function on_pending_advert($post_id) { $post_title = get_the_title( $post_id ); $edit_post_link = get_edit_post_link( $post_id ); wp_mail(get_option("admin_email"), "New Pending Ad | $post_title", "A new ad with ID $post_id and title $post_title was sent and awaits approval. <p> Follow the link below to moderate it. <p> $edit_post_link "); } ?>
- The topic ‘Transactional E-mails’ is closed to new replies.