首页 WordPress函数大全 get_comment_excerpt()

get_comment_excerpt()

2020-05-01 / 4541阅 / 悠然

如何你看完本文还不知道如何使用该函数,可以联系我定制视频教程,50元/个函数,学不会全额退款

get_comment_excerpt( int|WP_Comment $comment_ID )

Retrieves the excerpt of the given comment.

描述

Returns a maximum of 20 words with an ellipsis appended if necessary.

参数

$comment_ID

(int|WP_Comment)
(Required)
WP_Comment or ID of the comment for which to get the excerpt. Default current comment.

返回

(string) The possibly truncated comment excerpt.

大家谈论
    我的见解