Title: Interfering with comment inserts
Last modified: August 21, 2016

---

# Interfering with comment inserts

 *  Resolved [Steve](https://wordpress.org/support/users/steveatty/)
 * (@steveatty)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/interfering-with-comment-inserts/)
 * My plugin makes calls to wp_insert_comment($data) to insert comments into the
   comment queue.
 * Your plugin seems to be intercepting this and trying to insert a captcha … which
   of course my code cannot respond to.
 * It is possible for me to add something to the comment_meta to indicate to your
   plugin that the comments should not invoke your plugin?
 * [http://wordpress.org/extend/plugins/spam-captcha/](http://wordpress.org/extend/plugins/spam-captcha/)

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

 *  [Sed Lex](https://wordpress.org/support/users/sedlex/)
 * (@sedlex)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/interfering-with-comment-inserts/#post-3709997)
 * Hi
 * Actually I never anticipate such issue
 * Have you try to load your plugin before mine ? If you only insert the comment
   on rare moment you could deactivate (remove_actions or remove_filter) the plugin
 *  Thread Starter [Steve](https://wordpress.org/support/users/steveatty/)
 * (@steveatty)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/interfering-with-comment-inserts/#post-3710303)
 * Haven’t you declared all your calls as private? I suspect that makes it hard 
   to me to unhook things.
 *  [Sed Lex](https://wordpress.org/support/users/sedlex/)
 * (@sedlex)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/interfering-with-comment-inserts/#post-3710351)
 * as private ? what do you mean ?
 *  [Sed Lex](https://wordpress.org/support/users/sedlex/)
 * (@sedlex)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/interfering-with-comment-inserts/#post-3710352)
 *     ```
       remove_action('preprocess_comment', array('spam_captcha','check_comment_captcha'));
       remove_action('wp_insert_comment', array('spam_captcha','check_comment_akismet'));
       ```
   
 *  [Sed Lex](https://wordpress.org/support/users/sedlex/)
 * (@sedlex)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/interfering-with-comment-inserts/#post-3710398)
 * is it solved ?
    Have you manage to overcome your problem ?
 *  Thread Starter [Steve](https://wordpress.org/support/users/steveatty/)
 * (@steveatty)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/interfering-with-comment-inserts/#post-3710399)
 * I’ve changed the author_id which I think, looking at your code, should fix it
   but the person who reported the problem has stopped using your plugin since I
   released the fix so I’ve no idea if it worked or not.
 *  [Sed Lex](https://wordpress.org/support/users/sedlex/)
 * (@sedlex)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/interfering-with-comment-inserts/#post-3710400)
 * Errr … You are not the one who reported the issue ?
    What author_id ?
 * Not sure to understand
 *  Thread Starter [Steve](https://wordpress.org/support/users/steveatty/)
 * (@steveatty)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/interfering-with-comment-inserts/#post-3710401)
 * The problem was reported to me by a user of my application and I did some investigation.
   So I raised the problem her but I wasn’t the person with the problem.
 * I meant the comment author_id – I now set it to 1 which your plugin basically
   whitelists.
 *  [Sed Lex](https://wordpress.org/support/users/sedlex/)
 * (@sedlex)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/interfering-with-comment-inserts/#post-3710402)
 * Ok I understand !
    Thanks for your explanations

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

The topic ‘Interfering with comment inserts’ is closed to new replies.

 * ![](https://ps.w.org/spam-captcha/assets/icon-256x256.png?rev=3353054)
 * [Spam Captcha - Safeguard your WordPress website effortlessly with Spam Captcha for WordPress](https://wordpress.org/plugins/spam-captcha/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/spam-captcha/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/spam-captcha/)
 * [Active Topics](https://wordpress.org/support/plugin/spam-captcha/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/spam-captcha/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/spam-captcha/reviews/)

 * 9 replies
 * 2 participants
 * Last reply from: [Sed Lex](https://wordpress.org/support/users/sedlex/)
 * Last activity: [12 years, 9 months ago](https://wordpress.org/support/topic/interfering-with-comment-inserts/#post-3710402)
 * Status: resolved