Title: wp_insert_post
Last modified: July 3, 2018

---

# wp_insert_post

 *  Resolved [lestra](https://wordpress.org/support/users/lestra/)
 * (@lestra)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/wp_insert_post-6/)
 * Hi. I can’t get admin notification to work when post (woocommerce product) is
   added by scrape plugin. Plugin use wp_insert_post function for post creation.
   Is this method supported by your plugin? Thanks.

Viewing 6 replies - 1 through 6 (of 6 total)

 *  Plugin Author [Jack – BNFW](https://wordpress.org/support/users/voltronik/)
 * (@voltronik)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/wp_insert_post-6/#post-10459272)
 * Hi [@lestra](https://wordpress.org/support/users/lestra/),
    Thanks for your message.
 * You may find this recent thread useful on how to trigger notifications using `
   wp_insert_post`: [https://wordpress.org/support/topic/duplicate-notifications-6/page/2/](https://wordpress.org/support/topic/duplicate-notifications-6/page/2/)
 * Hope this helps.
 *  Thread Starter [lestra](https://wordpress.org/support/users/lestra/)
 * (@lestra)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/wp_insert_post-6/#post-10479470)
 * Thanks!
 *  Thread Starter [lestra](https://wordpress.org/support/users/lestra/)
 * (@lestra)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/wp_insert_post-6/#post-10492022)
 * It’s me again.
 * The post you point me to, I don’t understand, but your plugin started to send
   notifications nicely without any action from my side. But suddenly it stoped 
   sending notifications if product is created with my scrape plugin. Plugin is 
   same version as everything else. I tried SMTP option with plugin you suggested
   but no luck. If I create product manually, notification works.
 * I can’t find what is going on. One day it works another don’t. I am on dedicated
   server and can change server settings if you think it can help. What do you think?
 *  Plugin Author [Jack – BNFW](https://wordpress.org/support/users/voltronik/)
 * (@voltronik)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/wp_insert_post-6/#post-10496600)
 * Hi [@lestra](https://wordpress.org/support/users/lestra/),
    Ah, I think that 
   may be the problem.
 * What is the scraping plugin that you’re using?
 *  Thread Starter [lestra](https://wordpress.org/support/users/lestra/)
 * (@lestra)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/wp_insert_post-6/#post-10634944)
 * BNFW thanks for response and sorry for delay. I am using [Scrapes](https://codecanyon.net/item/scrapes-web-scraper-plugin-for-wordpress/18918857?gclid=Cj0KCQjwiJncBRC1ARIsAOvG-a7likG49LTKl0bknuJKlW8eME-7bAq0LfOtUz0iOFIT-QDh4K1hiiwaAr5kEALw_wcB)
   plugin
 *  Plugin Author [Jack – BNFW](https://wordpress.org/support/users/voltronik/)
 * (@voltronik)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/wp_insert_post-6/#post-10638883)
 * Hi [@lestra](https://wordpress.org/support/users/lestra/),
    Ah, yes, pretty sure
   that’s the problem unfortunately. The plugin seems to inserting posts directly
   into the database as opposed to saving them and then transitioning them from 
   draft to publish. As such, it’s unlikely BNFW will be able to send out notifications
   for them.

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘wp_insert_post’ is closed to new replies.

 * ![](https://ps.w.org/bnfw/assets/icon.svg?rev=2531573)
 * [Customize WordPress Emails and Alerts - Better Notifications for WP](https://wordpress.org/plugins/bnfw/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/bnfw/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/bnfw/)
 * [Active Topics](https://wordpress.org/support/plugin/bnfw/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/bnfw/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/bnfw/reviews/)

 * 6 replies
 * 2 participants
 * Last reply from: [Jack – BNFW](https://wordpress.org/support/users/voltronik/)
 * Last activity: [7 years, 8 months ago](https://wordpress.org/support/topic/wp_insert_post-6/#post-10638883)
 * Status: resolved