首页 WordPress函数大全 comment_exists()

comment_exists()

2020-05-01 / 3824阅 / 悠然

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

comment_exists( string $comment_author, string $comment_date, string $timezone = 'blog' )

Determine if a comment exists based>

Contents

  • Description
    • Parameters
    • Return
    • Source
    • Changelog
  • Related
    • Uses
  • User Contributed Notes

描述

For best performance, use $timezone = 'gmt', which queries a field that is properly indexed. The default value for $timezone is ‘blog’ for legacy reasons.

参数

$comment_author

(string)
(Required)
Author of the comment.

$comment_date

(string)
(Required)
Date of the comment.

$timezone

(string)
(Optional)
Timezone. Accepts 'blog' or 'gmt'.

Default value: 'blog'

返回

(mixed) Comment post ID on success.

大家谈论
    我的见解