[wp-hackers] WordPress 3 - comment_form hooks
otto at ottodestruct.com
Mon May 24 13:55:47 UTC 2010
On Sun, May 23, 2010 at 3:43 PM, Jeff Rose <mirepup at gmail.com> wrote:
> Just curious if someone can suggest the proper way of supporting the
> upcoming new hooks to comment_form in WordPress 3, while supporting backward
> How could a plugin know if the comment_form action was called and is
> hookable (ie: add or remove fields), versus the traditional HTML output?
> Or am I missing something obvious?
The obvious thing you're missing is that there really is no backwards
compatibility necessary. The comment_form is wholly new to the core.
If you're wanting to modify it via its hooks, then do so.
But looking backwards, there was no comment form in the core. It was
in the theme. So modifying the comment form previously required the
user to manually edit their theme. You had no hooks into it at all
except for the "comment_form", which was not always there (trust me on
this, the number of questions I've gotten about SFC from people with
weird ass comment forms is in the hundreds...).
So backwards-wise, your users will still need to modify their form
themselves if they want things there. But forwards looking, if the
theme supports the new comment_form() call, then they won't have to do
that any more.
More information about the wp-hackers