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 Conditional Tags} article in the Theme Developer Handbook.

Related Functions

the_excerpt, get_the_excerpt, wp_html_excerpt, the_excerpt_rss, the_excerpt_embed

Top Google Results

User discussions

wpseek mobile