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.1

apply_filters('pre_comment_approved') is found 1 times:

  • /wp-includes/comment.php line 1309
    	 * @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: