get_comment_id

过滤钩子


apply_filters( 'get_comment_ID', $comment_ID, $comment )
参数
  • (string)
    $comment_ID
    The current comment ID as a numeric string.
    Required:
  • (WP_Comment)
    $comment
    The comment object.
    Required:
定义位置
  • wp-includes/comment-template.php
    , line 679
引入
4.1.0
弃用

过滤返回的评论ID。

return apply_filters( 'get_comment_ID', $comment_ID, $comment );  // phpcs:ignore WordPress.NamingConventions.ValidHookName.NotLowercase