• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Data manipulation right before render

#1
Greetings,

I am wondering if there is a Listener that I can use to manipulate all the output from the templates.

I checked the template_post_render but it has a note:

Called after a template is rendered. Please note that this is only called for templates that are created via the template object directly. Templates that are included via <xen:include> will not trigger this event.

Is there anything else I can use so that all output is filtered?

Thanks!
 

Mike

XenForo developer
Staff member
#2
Have a look at front_controller_post_view. That said, note that this is all output - the $content that's passed may not be HTML, and there are situations where it can be an object (XenForo_FileOutput) instead of a string.