[wp-trac] Re: [WordPress Trac] #8343: Comment Form Submission: need action hook

WordPress Trac wp-trac at lists.automattic.com
Sun May 10 07:10:24 GMT 2009


#8343: Comment Form Submission: need action hook
------------------------------+---------------------------------------------
 Reporter:  tonebari          |        Type:  defect (bug)
   Status:  new               |    Priority:  normal      
Milestone:  2.8               |   Component:  Comments    
  Version:                    |    Severity:  normal      
 Keywords:  has-patch commit  |  
------------------------------+---------------------------------------------

Comment(by westi):

 You can already use the pre_process_comment hook in wp_new_comment to
 achieve what you want.

 However, I can see the benefit of another hook here for earlier work.

 I am going to add an action to the if/then/else that appears just after so
 it only fires if WordPress would have accepted the comment anyway.

 New action is called 'pre_comment_on_post'

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/8343#comment:4>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list