pre_comment_approved

最后更新于:2021-11-27 18:44:47

apply_filters( ‘pre_comment_approved’, int|string|GC_Error $approved, array $commentdata )

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

参数

$approved

(int|string|GC_Error)
The approval status. Accepts 1, 0, ‘spam’, ‘trash’, or GC_Error.

$commentdata

(array)
Comment data.

源文件

文件: gc-includes/comment.php

View on Trac