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:

Description

Determines whether the post has a custom excerpt.

For more information on this and similar theme functions, check out the {@link https://developer.wordpress.org/themes/basics/conditional-tags/ Conditional Tags} article in the Theme Developer Handbook.

Related Functions

the_excerpt, the_excerpt_rss, wp_html_excerpt, get_the_excerpt, the_excerpt_embed

Top Google Results

User discussions

wpseek mobile