[wp-hackers] Getting comment-template.php from a plugin? (comments outside the loop)

Austin Matzko if.website at gmail.com
Tue Apr 29 17:26:58 GMT 2008


On Tue, Apr 29, 2008 at 1:16 PM, John Eckman <eckman.john at gmail.com> wrote:
>  just include comment-template.php (and all the functions it defines) in my
> plugin - but I don't think I can include outside the template directory.

There's no reason you can't include a file in your plugin's
sub-directory for the comments template.  Just filter
'comments_template' and pass to it the absolute path to your included
file.


More information about the wp-hackers mailing list