首页 WordPress函数大全 get_comment_class()

get_comment_class()

2020-05-01 / 2767阅 / 悠然

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

get_comment_class( string|array $class = '', int|WP_Comment $comment_id = null, int|WP_Post $post_id = null )

Returns the classes for the comment div as an array.

描述

参数

$class

(string|array)
(Optional)
>Default value: ''

$comment_id

(int|WP_Comment)
(Optional)
Comment ID or WP_Comment object. Default current comment.

Default value: null

$post_id

(int|WP_Post)
(Optional)
Post ID or WP_Post object. Default current post.

Default value: null

返回

(string[]) An array of classes.

大家谈论
    我的见解