Uses
Uses | Description |
---|---|
wp-includes/plugin.php: add_filter() | Hook a function or method to a specific filter action. |
Hooks WP’s native database-based comment-flood check.
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().
File: wp-includes/comment.php
function check_comment_flood_db() { add_filter( 'wp_is_comment_flood', 'wp_check_comment_flood', 10, 5 ); }
Version | Description |
---|---|
4.7.0 | Converted to be an add_filter() wrapper. |
2.3.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/check_comment_flood_db