Filters a comment's approval status before it is set.
$approvedint|string|WP_Error$commentdataarraywp-includes/comment.php:1340wp_check_comment_data() * and allow skipping further processing. * * @param int|string|WP_Error $approved The approval status. Accepts 1, 0, 'spam', 'trash', * or WP_Error. * @param array $commentdata Comment data. */ return apply_filters( 'pre_comment_approved', $approved, $comment_data );} /** * Checks if a comment contains disallowed characters or words. * * @since 5.5.0Introduced in 2.1.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.