[wp-hackers] Getting the entire HTML page generated from WordPress
Mario Peshev
mario at peshev.net
Mon Feb 6 19:26:43 UTC 2012
I've tried one solution from stackexchange:
http://wordpress.stackexchange.com/a/41351/11506
Didn't seem to work though, the end buffering had problems and the content
was blank at the end. Or am I doing it wrong?
Mario Peshev
Training and Consulting Services @ DevriX
http://www.linkedin.com/in/mpeshev
http://devrix.com
http://peshev.net/blog
On Mon, Feb 6, 2012 at 9:10 PM, Otto <otto at ottodestruct.com> wrote:
> Use output buffering. On the init action, do an ob_start(), then hook
> a function to the shutdown action hook and you can do an
> ob_get_clean() to get the contents, filter them as you will, then echo
> the result.
>
> Not the best, but the only whole-page method I know of.
>
> -Otto
>
>
>
> On Mon, Feb 6, 2012 at 12:58 PM, Mario Peshev <mario at peshev.net> wrote:
> > Hello everyone,
> >
> > I'm trying to intercept the entire HTML page generated on a page load in
> > WordPress. the_content() is not enough as I need some filtering in the
> meta
> > tags, footer, sidebar etc.
> >
> > I've been looking for some filters and the HTTP API, but nothing seems to
> > work on a page basis, i.e. post-filtering of every element in the entire
> > DOM tree.
> >
> > Any tips on this?
> >
> > Mario Peshev
> > Training and Consulting Services @ DevriX
> > http://www.linkedin.com/in/mpeshev
> > http://devrix.com
> > http://peshev.net/blog
> > _______________________________________________
> > 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