check_comment_flood_db

Hooks WP's native database-based comment-flood check.

Description

check_comment_flood_db(); 

This wrapper maintains backward compatibility with plugins that expect to be able to unhook the legacy check_comment_flood_db() function from 'check_comment_flood' using remove_action().


Usage

  1. if ( !function_exists( 'check_comment_flood_db' ) ) { 
  2. require_once ABSPATH . WPINC . '/comment.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = check_comment_flood_db(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/wp-includes/comment.php  
  1. function check_comment_flood_db() {