wpseek.com
A WordPress-centric search engine for devs and theme authors



pre_comment_approved › WordPress Filter Hooks

Since4.9.0
Deprecatedn/a
apply_filters( 'pre_comment_approved', $approved, $commentdata )
Parameters: (2)
  • (int|string|WP_Error) $approved The approval status. Accepts 1, 0, 'spam', 'trash', 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

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