WordPress开发者和主题制作者的搜索引擎



pre_comment_approved ›

Since4.9.0
已弃用n/a
apply_filters( 'pre_comment_approved', $approved, $commentdata )
参数: (2)
  • (bool|string|WP_Error) $approved The approval status. Accepts 1, 0, 'spam' or WP_Error.
    Required: Yes
  • (array) $commentdata Comment data.
    Required: Yes
定义在:
文档:

Filters a comment's approval status before it is set.





源码

$approved = apply_filters( 'pre_comment_approved', $approved, $commentdata );