Filter or Hook to catch pre-rendering of post content

Is there a filter or hook that is triggered just before post content is rendered?

What I’d like to do is to apply a filter to the text content of a post just before the post text is being rendered.

Related posts

Leave a Reply

1 comment

  1. Can you not simply use the_content filter hook?

    function mytheme_content_filter( $content ) {
         // Do stuff to $content, which contains the_content()
         // Then return it
         return $content;
    }
    add_filter( 'the_content', 'mytheme_content_filter' );