WordPress开发者和主题制作者的搜索引擎



check_comment_flood_db ›

Since2.3.0
已弃用n/a
check_comment_flood_db ( 没有参数 )
定义在:
文档:
Change Log:
  • 4.7.0

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().



源码

function check_comment_flood_db() {
	add_filter( 'wp_is_comment_flood', 'wp_check_comment_flood', 10, 5 );
}