Title: Doesn&#039;t work: Using Wrong Hooks
Last modified: August 20, 2016

---

# Doesn't work: Using Wrong Hooks

 *  [Mike Schinkel](https://wordpress.org/support/users/mikeschinkel/)
 * (@mikeschinkel)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/doesnt-work-using-wrong-hooks/)
 * Hi Velvet Blue,
 * I downloaded your plugin today and found that it doesn’t work. I debugged it 
   and found that you are using the wrong hook in one place: you are using `'comment_save_pre'`
   when you should be using `'edit_comment'`; just change on line 36 and it will
   allow your plugin to save _(but you might want to change the name the parameter
   on line 78 and delete the other references on the return statement for good programming
   practice, of course.) _ It’s strange because it’s perfectly structured otherwise;
   I wonder if someone changed from `'edit_comment'` accidentally?
 * The other problem uncovered is that the second time the Quick Reply form is opened
   between page refreshes it doesn’t update the fields. It appears to be something
   that might have been broken by changes in the how comments are handled via AJAX.
   You are generating the edit form once after all other comments are rendered in
   the `'wp_comment_reply'` hook but on AJAX WordPress 3.5 does not call that hook.
 * I tried to fix it for you but it looks like it’s going to require more time than
   I have this morning so I’ll leave it with you.
 * -Mike
 * [http://wordpress.org/extend/plugins/vb-wp-move-comments/](http://wordpress.org/extend/plugins/vb-wp-move-comments/)

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

 *  Plugin Author [VelvetBlues.com](https://wordpress.org/support/users/velvetbluescom/)
 * (@velvetbluescom)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/doesnt-work-using-wrong-hooks/#post-3307253)
 * Thanks for your help Mike! I’ll definitely look into these odd bugs in WP 3.5
   and update the plugin.
 *  Thread Starter [Mike Schinkel](https://wordpress.org/support/users/mikeschinkel/)
 * (@mikeschinkel)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/doesnt-work-using-wrong-hooks/#post-3307279)
 * Cool. Thanks for acknowledging. Looking forward to the fixes.
 *  Thread Starter [Mike Schinkel](https://wordpress.org/support/users/mikeschinkel/)
 * (@mikeschinkel)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/doesnt-work-using-wrong-hooks/#post-3307351)
 * Hi @VelvetBlues:
 * Any updates?
 *  [ag2reo4s](https://wordpress.org/support/users/ag2reo4s/)
 * (@ag2reo4s)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/doesnt-work-using-wrong-hooks/#post-3307401)
 * I need to admin (move) some comments on my blog, and this plugin is exactly what
   I need! Unfortunately, I found that it isn’t updating the fields when I submit
   the change. I found this support post…looks like it may be the same issue I am
   experiencing. Is there any update coming to this plugin? If not, I will need 
   to figure out another way to move my comments.
 * If someone wants to work with me, I am interested in learning how to write plugins
   and I would partner up to fix this plugin. I am a long-time developer, but fairly
   new to WordPress.
 *  Thread Starter [Mike Schinkel](https://wordpress.org/support/users/mikeschinkel/)
 * (@mikeschinkel)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/doesnt-work-using-wrong-hooks/#post-3307402)
 * Hey [@ag2reo4s](https://wordpress.org/support/users/ag2reo4s/) – [contact me](http://about.me/mikeschinkel),
   let’s chat about your past experience and interest in plugin development, maybe
   I can help.
 *  [TechnoViel](https://wordpress.org/support/users/technoviel/)
 * (@technoviel)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/doesnt-work-using-wrong-hooks/#post-3307414)
 * Mike, your my hero! I edited the PHP as you described in line 36 and it now works–
   I’m using WP3.6.
    Thanks a lot for indicating this. [@author](https://wordpress.org/support/users/author/):
   Please fix, it’s so easy that it’s hard to understand why you haven’t done this
   within 8 months…
 * PS: I mainly intend to use this to assign the right parent to comments – WP is
   not very good at helping users to properly answer comments…

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

The topic ‘Doesn't work: Using Wrong Hooks’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/vb-wp-move-comments_7396aa.svg)
 * [WordPress Move Comments](https://wordpress.org/plugins/vb-wp-move-comments/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/vb-wp-move-comments/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/vb-wp-move-comments/)
 * [Active Topics](https://wordpress.org/support/plugin/vb-wp-move-comments/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/vb-wp-move-comments/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/vb-wp-move-comments/reviews/)

## Tags

 * [bugs](https://wordpress.org/support/topic-tag/bugs/)

 * 6 replies
 * 4 participants
 * Last reply from: [TechnoViel](https://wordpress.org/support/users/technoviel/)
 * Last activity: [12 years, 7 months ago](https://wordpress.org/support/topic/doesnt-work-using-wrong-hooks/#post-3307414)
 * Status: not resolved