Core Function
View Source on Trac ↗ get_the_content()
get_the_content( mixed $more_link_text = null, mixed $strip_teaser = false, mixed $post = null ) Retrieves the post content.
Parameters 1 required
| Name / Type | Description |
|---|---|
| $more_link_text string | Optional. Content for when there is more text. |
| $strip_teaser bool | Optional. Strip teaser content before the more text. Default false. |
| (WP_Post | | object | int) $post Optional. WP_Post instance or Post ID/object. Default null. Required |
Return Value
(string)
string
Function Information
Since Version
0.71
Source File
wp-includes/post-template.php
Advertisement