akismet_delete_comment_interval, 15
akismet_delete_comment_interval, 15
Appears in: 7.0.3
Hook Type: filter
Displaying hooks found in version: 7.0.3apply_filters('akismet_delete_comment_interval, 15') is found 2 times:
- /wp-content/plugins/akismet/class.akismet.php line 867
* 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 192
<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' ) );