Skip to content

the_content

github-actions[bot] edited this page Jul 2, 2026 · 10 revisions

Auto-generated Example

/**
 * Callback function for the 'the_content' filter.
 *
 * @param mixed $object->post_content 
 * @return mixed The filtered value.
 */
function my_the_content_callback( $object->post_content ) {
    // Your code here.
    return $object->post_content;
}
add_filter( 'the_content', 'my_the_content_callback' );

Parameters

  • $object->post_content Other variable names: $post_content

Files

\apply_filters( 'the_content', $this->object->post_content )
\apply_filters( 'the_content', $post->post_content )
\apply_filters( 'the_content', $post->post_content )

← All Hooks

Clone this wiki locally