wpseek.com
Un motore di ricerca WordPress per sviluppatori e autori di temi



has_excerpt › WordPress Function

Da2.3.0
Deprecaton/a
has_excerpt ( $post = 0 )
Parametri:
  • (int|WP_Post) $post Optional. Post ID or WP_Post object. Default is global $post.
    Richiesto: No
    Default:
Ritorna:
  • (bool) True if the post has a custom excerpt, false otherwise.
Definito a:
Codex:

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.


Sorgenti

function has_excerpt( $post = 0 ) {
	$post = get_post( $post );
	return ( ! empty( $post->post_excerpt ) );
}