A WordPress-centric search engine for devs and theme authors



pre_comment_approved ›

Since4.9.0
Deprecatedn/a
apply_filters( 'pre_comment_approved', $approved, $commentdata )
Parameters: (2)
  • (bool|string|WP_Error) $approved The approval status. Accepts 1, 0, 'spam' or WP_Error.
    Required: Yes
  • (array) $commentdata Comment data.
    Required: Yes
Defined at:
Codex:

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





Source

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