pre_comment_approved

pre_comment_approved

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter
See hook in action

See hook in core

Displaying hooks found in version: wordpress-6.7.2

apply_filters('pre_comment_approved') is found 1 times:

  • /wp-includes/comment.php line 1309
    1305
    1306
    1307
    1308
    1309
    1310
    1311
    1312
    1313
    1314
    1315
         * @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.0

See this hook used in plugins: