WordPress.org

Make WordPress Core

Ticket #18561: post-template.php.diff

File post-template.php.diff, 516 bytes (added by nathanrice, 3 years ago)

Hooks before and after content.

  • wp-includes/post-template.php

     
    166166        $content = get_the_content($more_link_text, $stripteaser); 
    167167        $content = apply_filters('the_content', $content); 
    168168        $content = str_replace(']]>', ']]>', $content); 
     169         
     170        do_action( 'before_the_content', $content ); 
    169171        echo $content; 
     172        do_action( 'after_the_content', $content ); 
    170173} 
    171174 
    172175/**