WordPress.org

Make WordPress Core

Ticket #18561: query.php.the_post_before.the_post_after.hooks.diff

File query.php.the_post_before.the_post_after.hooks.diff, 292 bytes (added by chipbennett, 22 months ago)

Add the_post_before and the_post_after hooks to fire inside of the_post()

  • .

     
    773773function the_post() { 
    774774        global $wp_query; 
    775775 
     776        do_action( 'the_post_before' ); 
     777 
    776778        $wp_query->the_post(); 
     779 
     780        do_action( 'the_post_after' ); 
    777781} 
    778782 
    779783/*