[wp-trac] Re: [WordPress Trac] #6284: add a the_post hook

WordPress Trac wp-trac at lists.automattic.com
Wed Apr 22 10:50:25 GMT 2009


#6284: add a the_post hook
-------------------------------+--------------------------------------------
 Reporter:  Denis-de-Bernardy  |       Owner:  anonymous       
     Type:  enhancement        |      Status:  new             
 Priority:  normal             |   Milestone:  2.8             
Component:  Optimization       |     Version:  2.5             
 Severity:  normal             |    Keywords:  has-patch tested
-------------------------------+--------------------------------------------

Comment(by azaozz):

 Couldn't that be done by using `the_content` as an action with higher
 priority? Something like:
 {{{
 add_filter( 'the_content', 'my_function', 1 );
 function my_function( $content ) {
     // add or remove filters for this post...
     return $content;
 }
 }}}

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/6284#comment:6>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list