WPDev.one
Core Function
View Source on Trac ↗

get_the_excerpt()

get_the_excerpt( mixed $post = null )

Retrieves the post excerpt.

Parameters 1 required

Name / Type Description
(int

| WP_Post) $post Optional. Post ID or WP_Post object. Default is global $post.

Required

Return Value

(string)
Post excerpt.

Function Information

Since Version
0.71
Source File
wp-includes/post-template.php
Advertisement