Title: Comment added and wp_insert_comment function
Last modified: May 6, 2020

---

# Comment added and wp_insert_comment function

 *  Resolved [shadowshades](https://wordpress.org/support/users/shadowshades/)
 * (@shadowshades)
 * [6 years ago](https://wordpress.org/support/topic/comment-added-and-wp_insert_comment-function/)
 * Hello,
    I use the function wp_insert_commen() in my code, but it seem that is
   not send the “Comment added” notification. It is suppose to ?
 * Else, there’s a way to trigger this notification in the code ?
 * Thank you!
    Have nice day!

Viewing 1 replies (of 1 total)

 *  Plugin Author [Kuba Mikita](https://wordpress.org/support/users/kubitomakita/)
 * (@kubitomakita)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/comment-added-and-wp_insert_comment-function/#post-13032505)
 * Hi, it definitely should because this function calls the `wp_insert_comment` 
   action which our trigger is using. Most likely you are calling this function 
   before the Notification plugin initializes and the trigger is not registered 
   yet.
 * The earliest action would be `init 10`, see the [plugin loading chain](https://docs.bracketspace.com/notification/developer/general/plugin-loading-chain).

Viewing 1 replies (of 1 total)

The topic ‘Comment added and wp_insert_comment function’ 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/)

## Tags

 * [added](https://wordpress.org/support/topic-tag/added/)
 * [comment](https://wordpress.org/support/topic-tag/comment/)
 * [function](https://wordpress.org/support/topic-tag/function/)
 * [published](https://wordpress.org/support/topic-tag/published/)
 * [trigger](https://wordpress.org/support/topic-tag/trigger/)

 * 1 reply
 * 2 participants
 * Last reply from: [Kuba Mikita](https://wordpress.org/support/users/kubitomakita/)
 * Last activity: [5 years, 11 months ago](https://wordpress.org/support/topic/comment-added-and-wp_insert_comment-function/#post-13032505)
 * Status: resolved