Title: Trigger Not Working with wp_insert_post
Last modified: March 11, 2022

---

# Trigger Not Working with wp_insert_post

 *  Resolved Anonymous User 13711045
 * (@anonymized-13711045)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/trigger-not-working-with-wp_insert_post/)
 * I’ve tried both the ‘added’ and ‘published’ option for a trigger for a CPT. They
   both work fine when adding a post in the admin section. However, the trigger 
   is not firing when I add a post using wp_insert_post. How do I make that work?

Viewing 1 replies (of 1 total)

 *  Plugin Author [Kuba Mikita](https://wordpress.org/support/users/kubitomakita/)
 * (@kubitomakita)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/trigger-not-working-with-wp_insert_post/#post-15452935)
 * Hey, no need for duplicating the same tickets. It was originally [posted on Github](https://github.com/BracketSpace/Notification/issues/401),
   so let’s continue the discussion over there.

Viewing 1 replies (of 1 total)

The topic ‘Trigger Not Working with wp_insert_post’ is closed to new replies.

 * ![](https://ps.w.org/notification/assets/icon-256x256.gif?rev=3476901)
 * [Notification - Custom Notifications and Alerts for WordPress](https://wordpress.org/plugins/notification/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/notification/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/notification/)
 * [Active Topics](https://wordpress.org/support/plugin/notification/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/notification/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/notification/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Kuba Mikita](https://wordpress.org/support/users/kubitomakita/)
 * Last activity: [4 years, 2 months ago](https://wordpress.org/support/topic/trigger-not-working-with-wp_insert_post/#post-15452935)
 * Status: resolved