[wp-trac] Re: [WordPress Trac] #4514: could we add a plugin hook?
WordPress Trac
wp-trac at lists.automattic.com
Sun Sep 30 11:19:17 GMT 2007
#4514: could we add a plugin hook?
-------------------------------+--------------------------------------------
Reporter: Denis-de-Bernardy | Owner: anonymous
Type: enhancement | Status: reopened
Priority: lowest | Milestone: 2.4
Component: General | Version:
Severity: trivial | Resolution:
Keywords: has-patch |
-------------------------------+--------------------------------------------
Comment (by Denis-de-Bernardy):
if the hook is called "start_ob", I sincerely doubt plugins will be use it
for anything else.
on a different note, it may make a lot of sense for WP to actually start
the output buffer itself, and to run it through later on with its own ob
handler.
e.g. something that goes like:
{{{
ob_start('wp_ob_handler');
function wp_ob_handler{$buffer)
{
if ( /* preg_match the <body> area of html docs */ )
$body = apply_filters('html_ob', $body);
...
else
$xml = apply_filters('xml_ob', $xml);
...
return $buffer;
}
}}}
--
Ticket URL: <http://trac.wordpress.org/ticket/4514#comment:8>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list