akismet_delete_comment_interval

akismet_delete_comment_interval

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.7.1

apply_filters('akismet_delete_comment_interval') is found 2 times:

  • /wp-content/plugins/akismet/class.akismet.php line 565
    		 * 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 178
     
    									<div class="akismet-settings__row-note">
    										<strong><?php esc_html_e( 'Note:', 'akismet' ); ?></strong>
    										<?php
    										$delete_interval = max( 1, intval( apply_filters( 'akismet_delete_comment_interval', 15 ) ) );
    
    										$spam_folder_link = sprintf(
    											'<a href="%s">%s</a>',
    											esc_url( admin_url( 'edit-comments.php?comment_status=spam' ) ),
    											esc_html__( 'spam folder', 'akismet' )
    										);