[wp-hackers] New Feature: insert header & footer snippets

Alexander Beutl xel at netgra.de
Sun Apr 13 21:17:23 GMT 2008

Hmmm - well there may be some use for it but it is always risky to parse
db-stored code so I wouldn't want this to be enabled by default.
Another thing is: There will be themes which need this extra code and others
where this would be redundant.
I think the right way to do this is write your own plugin which inserts all
this the normal
way (calling the template-functions from within the wp_head() hook - you
should be able to use the template tags there without any problems).

Maybe one could put in some placeholders which trigger special template
tags. But I wouldn't allow custom php there for security reasons
(SQL-Injection-Vulnerabilities are not soo uncommon and one shouldn't make a
script injection possible with that...)


2008/4/13, Eric Marden <wp at xentek.net>:
> > Eric: It would be simply silly to include PHP with a Plugin into the
> > header/footer. If you can write your own functions you can simply hook
> > them
> > in.
> >
> I was referring to template tags, which one may want to print to the
> footer without altering the theme.
> -e
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers

More information about the wp-hackers mailing list