Action hook 'akismet_delete_commentmeta_batch'

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

View Source

akismet_delete_commentmeta_batch

Action Hook
Description
Determines how many days a comment will be left in the Spam queue before being deleted.

Hook Information

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

Hook Parameters

This hook doesn't accept any parameters.

Usage Examples

Basic Usage
<?php
// Hook into akismet_delete_commentmeta_batch
add_action('akismet_delete_commentmeta_batch', 'my_custom_function');

function my_custom_function() {
    // Your custom code here
}

Source Code Context

wp-content/plugins/akismet/class.akismet.php:659 - How this hook is used in WordPress core
<?php
 654  				}
 655  
 656  				$last_meta_id = $commentmeta->meta_id;
 657  			}
 658  
 659  			do_action( 'akismet_delete_commentmeta_batch', $commentmeta_deleted );
 660  
 661  			// If we're getting close to max_execution_time, quit for this round.
 662  			if ( microtime( true ) - $start_time > $max_exec_time ) {
 663  				return;
 664  			}

PHP Documentation

<?php
/**
		 * Determines how many days a comment will be left in the Spam queue before being deleted.
		 *
		 * @param int The default number of days.
		 */
Quick Info
  • Hook Type: Action
  • Parameters: 0
  • File: wp-content/plugins/akismet/class.akismet.php
Related Hooks

Related hooks will be displayed here in future updates.