has_excerpt()
最后更新于:2021-11-27 04:49:56
has_excerpt( int|GC_Post$post)Determines whether the post has a custom excerpt.
参数
响应
(bool) True if the post has a custom excerpt, false otherwise.
源文件
文件: gc-includes/post-template.php
function has_excerpt( $post = 0 ) {
$post = get_post( $post );
return ( ! empty( $post->post_excerpt ) );
}