the_content( string $more_link_text = null, bool $strip_teaser = false )
Display the post content.
Parameters
- $more_link_text
-
(string) (Optional) Content for when there is more text.
Default value: null
- $strip_teaser
-
(bool) (Optional) Strip teaser content before the more text. Default is false.
Default value: false
Source
File: wp-includes/post-template.php
function the_content( $more_link_text = null, $strip_teaser = false) {
$content = get_the_content( $more_link_text, $strip_teaser );
/**
* Filters the post content.
*
* @since WP-0.71
*
* @param string $content Content of the current post.
*/
$content = apply_filters( 'the_content', $content );
$content = str_replace( ']]>', ']]>', $content );
echo $content;
}
Changelog
Version | Description |
---|---|
WP-0.71 | Introduced. |