akismet_delete_comment_interval

akismet_delete_comment_interval

Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-5.4.2

apply_filters('akismet_delete_comment_interval') is found 2 times:

  • /wp-content/plugins/akismet/class.akismet.php line 366
    		 * Determines how many days a comment will be left in the Spam queue before being deleted.
    		 *
    		 * @param int The default number of days.
    		 */
    		$delete_interval = apply_filters( 'akismet_delete_comment_interval', 15 );
    		$delete_interval = max( 1, intval( $delete_interval ) );
    
    		while ( $comment_ids = $wpdb->get_col( $wpdb->prepare( "SELECT comment_id FROM {$wpdb->comments} WHERE DATE_SUB(NOW(), INTERVAL %d DAY) > comment_date_gmt AND comment_approved = 'spam' LIMIT %d", $delete_interval, $delete_limit ) ) ) {
    			if ( empty( $comment_ids ) )
    				return;
    
    
  • /wp-content/plugins/akismet/views/config.php line 138
    										</fieldset>
    										<span class="akismet-note"><strong><?php esc_html_e('Note:', 'akismet');?></strong>
    										<?php
    
    										$delete_interval = max( 1, intval( apply_filters( 'akismet_delete_comment_interval', 15 ) ) );
    
    										printf(
    											_n(
    												'Spam in the <a href="%1$s">spam folder</a> older than 1 day is deleted automatically.',
    												'Spam in the <a href="%1$s">spam folder</a> older than %2$d days is deleted automatically.',
    												$delete_interval,