Title: wp_set_comment_status don&#8217;t working?
Last modified: August 19, 2016

---

# wp_set_comment_status don’t working?

 *  [SchattenMann](https://wordpress.org/support/users/schattenmann/)
 * (@schattenmann)
 * [15 years, 11 months ago](https://wordpress.org/support/topic/wp_set_comment_status-dont-working/)
 * hello
 * i need to run one function when comments are posted and approved.
 * i read at codex that wp_set_comment_status, comment_post and edit_comment with
   add_action would do the trick
 * the problem is that comment_post and edit_comment is working but if a post is
   not approved at the beginning but later approved by admin my function is not 
   called…
 * how can i call it there?
 * [http://codex.wordpress.org/Plugin_API/Action_Reference](http://codex.wordpress.org/Plugin_API/Action_Reference)

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

 *  Thread Starter [SchattenMann](https://wordpress.org/support/users/schattenmann/)
 * (@schattenmann)
 * [15 years, 11 months ago](https://wordpress.org/support/topic/wp_set_comment_status-dont-working/#post-1545190)
 * cm’on anyone? its whe only thing missing so i can release the plugin…
 *  Thread Starter [SchattenMann](https://wordpress.org/support/users/schattenmann/)
 * (@schattenmann)
 * [15 years, 11 months ago](https://wordpress.org/support/topic/wp_set_comment_status-dont-working/#post-1545219)
 * bump
 *  Thread Starter [SchattenMann](https://wordpress.org/support/users/schattenmann/)
 * (@schattenmann)
 * [15 years, 11 months ago](https://wordpress.org/support/topic/wp_set_comment_status-dont-working/#post-1545280)
 * bump
 *  [shaks](https://wordpress.org/support/users/shaks/)
 * (@shaks)
 * [15 years, 11 months ago](https://wordpress.org/support/topic/wp_set_comment_status-dont-working/#post-1545281)
 * I wish i had some knowledge about this code to help you. 🙁
 * I will post your question on other code support forums and i will let you know
   if i get any answers from the people there.
 *  Thread Starter [SchattenMann](https://wordpress.org/support/users/schattenmann/)
 * (@schattenmann)
 * [15 years, 11 months ago](https://wordpress.org/support/topic/wp_set_comment_status-dont-working/#post-1545286)
 * tks
 *  Thread Starter [SchattenMann](https://wordpress.org/support/users/schattenmann/)
 * (@schattenmann)
 * [15 years, 11 months ago](https://wordpress.org/support/topic/wp_set_comment_status-dont-working/#post-1545304)
 * bump
 *  Thread Starter [SchattenMann](https://wordpress.org/support/users/schattenmann/)
 * (@schattenmann)
 * [15 years, 10 months ago](https://wordpress.org/support/topic/wp_set_comment_status-dont-working/#post-1545339)
 * bump

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

The topic ‘wp_set_comment_status don’t working?’ is closed to new replies.

## Tags

 * [posts](https://wordpress.org/support/topic-tag/posts/)
 * [SMF](https://wordpress.org/support/topic-tag/smf/)
 * [wp_set_comment_status](https://wordpress.org/support/topic-tag/wp_set_comment_status/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 7 replies
 * 2 participants
 * Last reply from: [SchattenMann](https://wordpress.org/support/users/schattenmann/)
 * Last activity: [15 years, 10 months ago](https://wordpress.org/support/topic/wp_set_comment_status-dont-working/#post-1545339)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
