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:
定义位置
相关勾子
get_commentget_comment_linkget_comment_dateget_comment_timeget_comments_link
相关方法
get_comment_idget_comment_guidget_commentget_comment_dateget_comment_timeget_comment_link
引入
4.1.0
弃用
-

get_comment_id函数返回一个给定评论的ID。它接受一个评论对象作为参数,并返回该评论的ID。

过滤返回的评论ID。

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

常见问题

FAQs
查看更多 >
闪电侠

(工作日 10:00 - 18:30 为您服务)

2025-12-05 16:32:56

您好,无论是售前、售后、意见建议……均可通过联系工单与我们取得联系。

您也可选择聊天工具与我们即时沟通或点击查看:

您的工单我们已经收到,我们将会尽快跟您联系!
取消
选择聊天工具: