[wp-hackers] Check for wp_footer

Vinicius Massuchetto viniciusandre at gmail.com
Sun Apr 25 13:51:05 UTC 2010


On Sun, Apr 25, 2010 at 12:28 AM, Dion Hulse (dd32)
<wordpress at dd32.id.au> wrote:
> You cant test for it reliably.
>
> You can attach to the shutdown hook, and check if did_action('wp_footer')..
> thats the only real way other than reading the footer template into memory
> and doing a string comparison.

I want to check on a plugin's interface, so the theme won't be loaded
for me to check if did_action('wp_footer').

I guess I'll have to read the `footer.php` file, then. I just don't
see it as a good manner of doing it.

> Better yet, just tell anyone who runs into a bug caused by it, to fix their
> theme..

Sure. =)

Thanks
--
Vinicius Massuchetto
http://vinicius.soylocoporti.org.br


More information about the wp-hackers mailing list