has_excerpt
has_excerpt ( $post = 0 )
Parameters:- (int|WP_Post) post Optional. Post ID or WP_Post object. Default is global $post.
Returns:- (bool) True if the post has a custom excerpt, false otherwise.
Defined at: - Introduced in WordPress: 2.3.0
- Deprecated in WordPress: —
Description
Determines whether the post has a custom excerpt.For more information on this and similar theme functions, check out
the {@link Conditional Tags} article in the Theme Developer Handbook.