[wp-hackers] Comment Form Hook
Matt Mullenweg
m at mullenweg.com
Mon Nov 15 17:12:02 UTC 2004
Mark Jaquith wrote:
> another step in that direction. Heck, all that needs to be added is
> <?php do_action('comment_post_form', '') // Do not delete this ?>, or it
> could be given a function that does that, just like wp_head()
Voila!
Remember if you're putting elements in a <form> that under XHTML 1.1
they need to be contained within a block-level element like <div> or <p>.
If you're targetting a plugin at 1.2 try the str_replace code from the
spambot stopper plugin to put things in the comment form, it looks
fragile but in practice works pretty well.
--
Matt Mullenweg
http://photomatt.net | http://wordpress.org
http://pingomatic.com | http://cnet.com
More information about the hackers
mailing list