[wp-hackers] Re: substitutes for hook wp_footer ?

DD32 wordpress at dd32.id.au
Fri Jan 25 00:16:06 GMT 2008

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

Or similar.. Very easy to accomplish, but something you'd only want to do once on the admin page(and once the theme changes)

> _______________________________________________
> 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