Filter hook 'akismet_delete_comment_limit'

in WP Core File wp-content/plugins/akismet/class.akismet.php at line 552

View Source

akismet_delete_comment_limit

Filter Hook
Description
Determines how many comments will be deleted in each batch.

Hook Information

File Location wp-content/plugins/akismet/class.akismet.php View on GitHub
Hook Type Filter
Line Number 552

Hook Parameters

This hook doesn't accept any parameters.

Usage Examples

Basic Usage
<?php
// Hook into akismet_delete_comment_limit
add_filter('akismet_delete_comment_limit', 'my_custom_filter');

function my_custom_filter() {
    // Your custom filtering logic here
    return 'modified_value';
}

Source Code Context

wp-content/plugins/akismet/class.akismet.php:552 - How this hook is used in WordPress core
<?php
 547  		/**
 548  		 * Determines how many comments will be deleted in each batch.
 549  		 *
 550  		 * @param int The default, as defined by AKISMET_DELETE_LIMIT.
 551  		 */
 552  		$delete_limit = apply_filters( 'akismet_delete_comment_limit', defined( 'AKISMET_DELETE_LIMIT' ) ? AKISMET_DELETE_LIMIT : 10000 );
 553  		$delete_limit = max( 1, intval( $delete_limit ) );
 554  
 555  		/**
 556  		 * Determines how many days a comment will be left in the Spam queue before being deleted.
 557  		 *

PHP Documentation

<?php
/**
		 * Determines how many comments will be deleted in each batch.
		 *
		 * @param int The default, as defined by AKISMET_DELETE_LIMIT.
		 */
Quick Info
  • Hook Type: Filter
  • Parameters: 0
  • File: wp-content/plugins/akismet/class.akismet.php
Related Hooks

Related hooks will be displayed here in future updates.