常用函数-wp_delete_comment()

0条评论

常用函数-wp_delete_comment()

说明

删除评论编号,之后可能更新文章评论总数。

如果评论被许可并具有相应可用的文章编号,文章评论总数将被更新。

用法

<?php wp_delete_comment( $comment_id ) ?>

参数

$comment_id

(整数)(必需)评论编号

默认值:None

返回的值

(布尔值)

删除评论请求失败,返回false,成功则返回true。

示例

注释

修改记录

自2.0.0版本后

源文件

wp_delete_comment() 位于 wp-includes/comment.php中。

相关资源

发表新评论

此内容将保密,不会被其他人看见。
  • 自动将网址与电子邮件地址转变为链接。
  • 允许HTML标签:<a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • 自动断行和分段。

更多关於格式化选项的信息

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
Image CAPTCHA
Enter the characters shown in the image.