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

John Blackbourn johnbillion+wp at gmail.com
Mon Feb 2 15:08:42 UTC 2015


You should take a look at some of the full-page caching plugins which
are available (seeing as that's what you're trying to do) and see how
they operate. The 'shutdown' hook is probably what you're after.

On 2 February 2015 at 06:26, Nashwan Doaqan <nashwan.doaqan at gmail.com> wrote:
> There is no 'after_get_footer' hook. Maybe you can use 'template_include'
> filter to encapsulate the working template with your ob_* functions. You
> should notice, some themes doesn't use get_footer function.. they must
> include wp_head() but get_footer() isn't required as far as I know.. Another
> option may be using register_shutdown_function() ? ..
>
> Good Luck !
>
>
> On 2/2/2015 8:09 AM, Haluk Karamete wrote:
>>
>> 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
>
>
> _______________________________________________
> 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