[wp-hackers] Idea for comments.php

Austin Matzko if.website at gmail.com
Mon Oct 2 22:52:41 GMT 2006

On 10/2/06, Roland Haeder <webmaster at mxchange.org> wrote:
> Some people (may) like to add some JavaScript pre-checking (e.g. useful for
> AJAX) to their plugins (contact forms, wherever the "blog reader" has to
> interact with the blog).
> Currently you have to "hack" comments.php a little but what about a
> filter-based solution? So plugin coders can very easy add their JavaScript to
> a onsubmit and onreset "stub".

Why not put the JavaScript in the header, via the wp_head action hook?

More information about the wp-hackers mailing list