[wp-hackers] Re: substitutes for hook wp_footer ?
Kaf Oseo
kaf at szub.net
Fri Jan 25 04:28:40 GMT 2008
DD32 wrote:
> On Fri, 25 Jan 2008 11:11:10 +1100, Chris Poteet <cpoteet at siolon.com> wrote:
>
>>> On the other hand, if you have a config screen, you could search the
>>> currently active theme's footer.php file for the "wp_footer" text and
>>> warn the user if the theme doesn't have it. Bit of a long way to go,
>>> but it would work.
>> How could you even do that?
>
> $source = file_get_contents(THEMEPATH . '/footer.php');
> if( strpos($source, 'wp_footer') === false ) {
> //No footer action in theme
> }
And if the theme doesn't sport a footer.php? Yes most do, but it's not a
required template.
-Kaf
More information about the wp-hackers
mailing list