WordPress获取评论列表函数:get_comments

WordPress函数get_comments用于获取整个网站或指定文章的评论列表。 get_comments( string|array $args = ” ): WP_Comment[]|int[]|int 函数参数$args数组或字符串 author_email 字符串 评论作者的邮箱地址。 author_url 字符串 评论作者的网址。 …

WordPress获取指定ID评论数据函数:get_comment

WordPress函数get_comment用于获取指定ID的评论对象数据。 get_comment( WP_Comment|string|int $comment = null, string $output = OBJECT ): WP_Comment|array|null 函数参数$comment WP_Comment|字符串|整数 评论对象或评论ID。 $output 字 …

WordPress获取已批准评论函数:get_approved_comments

WordPress函数get_approved_comments用于获取已批准的评论或已驳回的评论。 get_approved_comments( int $post_id, array $args = array() ): WP_Comment[]|int[]|int 函数参数$post_id 整数 文章ID $args数组,可用值如下 …

WordPress检测评论函数:check_comment

WordPress函数check_comment用于检测评论各字段,以判断是否为恶意评论。 check_comment( string $author, string $email, string $url, string $comment, string $user_ip, string $user_agent, string $comment_type ): bool 函数参数$author 字符串 评论作者名称 $email 字符串 评论作者 …

WordPress上一页评论函数:previous_comments_link

WordPress函数previous_comments_link显示指向上一页评论的链接。 previous_comments_link( string $label = '' ) 函数参数$label 字符串值,默认值:null 显示在链接中的文本。 函数返回值 …

WordPress当前文章评论分页函数:paginate_comments_links

WordPress函数paginate_comments_links用于输出当前文章评论分页链接。 paginate_comments_links( string|array $args = array() ) 函数参数$args数组或字符串 paginate_comments_li …

WordPress获取搜索结果评论Feed链接函数:get_search_comments_feed_link

WordPress函数get_search_comments_feed_link用于获取搜索结果评论Feed。 get_search_comments_feed_link( string $search_query = '', string $feed = '' ) 函数参数$search_query 字符串 关键词 $feed 字 …

WordPress获取搜索Feed链接函数:get_search_feed_link

WordPress函数get_search_feed_link用于获取搜索结果的Feed链接。 get_search_feed_link( string $search_query = '', string $feed = '' ) 函数参数$search_query 字符串 关键词 $feed 字符串 Feed的类 …

WordPress输出当前文章Rss enclosure函数:rss_enclosure

WordPress函数用于输出当前文章的Rss enclosure,该函数使用全局变量$post来输出对应信息,如果文章设置为加密,则不输出任何内容。 rss_enclosure() 函数返回值该函数返回一个XML …

WordPress获取分类Rss函数:get_the_category_rss

WordPress函数get_the_category_rss用于获取当前文章所属分类、标签的Rss。 get_the_category_rss( string $type = null ) 函数参数$type 字符串 Feed的类型,可用值:rss2、atom …