[wp-hackers] is there a hook firing right after the </html>?

Andrew Nacin wp at andrewnacin.com
Mon Feb 2 20:50:51 UTC 2015

Output buffer callbacks are automatically called at the conclusion of the

There is a 'shutdown' hook that fires on a shutdown handler that you can
also use.

On Mon, Feb 2, 2015 at 12:09 AM, Haluk Karamete <halukkaramete at gmail.com>

> I need to run ob_get_clean() as soon as the get_footer() is done running -
> meaning as soon as the </html> is outputted.
> What hook can I use for that?
> more insight on why do I need that?
> the goal is to put the generated html ( from <doctype to </html> ) into a
> transient.
> and for this goal, I set the "ob_buffer" using the get_header() action
> hook.
> but that's only half of the deal...
> I still need to catch the buffer when i am done with the full page -
> meaning when I am done wirth outputting the </html>
> is there a hook such as "after_get_footer" ?
> _______________________________________________
> 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