Action hook 'akismet_scheduled_recheck'

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

View Source

akismet_scheduled_recheck

Action Hook
Description
Log an event for a given comment, storing it in comment_meta.

Hook Information

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

Hook Parameters

Type Name Description
int $comment_id The ID of the relevant comment.
string $message The string description of the event. No longer used.
string $event The event code.
array $meta Metadata about the history entry. e.g., the user that reported or changed the status of a given comment.

Usage Examples

Basic Usage
<?php
// Hook into akismet_scheduled_recheck
add_action('akismet_scheduled_recheck', 'my_custom_function', 10, 4);

function my_custom_function($comment_id, $message, $event, $meta) {
    // Your custom code here
}

Source Code Context

wp-content/plugins/akismet/class.akismet.php:1199 - How this hook is used in WordPress core
<?php
1194  
1195  		$check_range = time() + 1200;
1196  		if ( $future_check > $check_range ) {
1197  			wp_clear_scheduled_hook( 'akismet_schedule_cron_recheck' );
1198  			wp_schedule_single_event( time() + 300, 'akismet_schedule_cron_recheck' );
1199  			do_action( 'akismet_scheduled_recheck', 'fix-scheduled-recheck' );
1200  		}
1201  	}
1202  
1203  	public static function add_comment_nonce( $post_id ) {
1204  		/**

PHP Documentation

<?php
/**
	 * Log an event for a given comment, storing it in comment_meta.
	 *
	 * @param int    $comment_id The ID of the relevant comment.
	 * @param string $message The string description of the event. No longer used.
	 * @param string $event The event code.
	 * @param array  $meta Metadata about the history entry. e.g., the user that reported or changed the status of a given comment.
	 */
Quick Info
  • Hook Type: Action
  • Parameters: 4
  • File: wp-content/plugins/akismet/class.akismet.php
Related Hooks

Related hooks will be displayed here in future updates.