akismet_delete_comment_interval
akismet_delete_comment_interval
Appears in: akismet.4.0.8, akismet.4.1, akismet.4.1.1, akismet.4.1.10, akismet.4.1.11, akismet.4.1.12, akismet.4.1.2, akismet.4.1.3, akismet.4.1.4, akismet.4.1.5, akismet.4.1.6, akismet.4.1.7, akismet.4.1.8, akismet.4.1.9, akismet.4.2, akismet.4.2.1, akismet.4.2.2, akismet.4.2.3, akismet.4.2.4, akismet.4.2.5, akismet.5.0, akismet.5.0.1, akismet.5.0.2, akismet.5.1, akismet.5.2, akismet.5.3, akismet.5.3.1, akismet.5.3.2, akismet.5.3.3, akismet.5.3.5, wordpress-4.4, wordpress-4.8, wordpress-5.0, wordpress-5.0.1, wordpress-5.0.2, wordpress-5.0.3, wordpress-5.1, wordpress-5.1.1, wordpress-5.2, wordpress-5.2.1, wordpress-5.2.2, wordpress-5.2.3, wordpress-5.3, wordpress-5.3.1, wordpress-5.3.2, wordpress-5.4, wordpress-5.4.1, wordpress-5.4.2, wordpress-5.5, wordpress-5.5.1, wordpress-5.5.2, wordpress-5.5.3, wordpress-5.6, wordpress-5.6.1, wordpress-5.6.2, wordpress-5.7, wordpress-5.7.1, wordpress-5.7.2, wordpress-5.8, wordpress-5.8.1, wordpress-5.8.2, wordpress-5.8.3, wordpress-5.9, wordpress-5.9.1, wordpress-5.9.2, wordpress-5.9.3, wordpress-6.0, wordpress-6.0.1, wordpress-6.0.2, wordpress-6.0.3, wordpress-6.1, wordpress-6.1.1, wordpress-6.2, wordpress-6.2.1, wordpress-6.2.2, wordpress-6.3, wordpress-6.3.1, wordpress-6.3.2, wordpress-6.4, wordpress-6.4.1, wordpress-6.4.2, wordpress-6.4.3, wordpress-6.5, wordpress-6.5.2, wordpress-6.5.3, wordpress-6.5.4, wordpress-6.5.5, wordpress-6.6, wordpress-6.6.1, wordpress-6.6.2, wordpress-6.7, wordpress-6.7.1
Hook Type: filter
Displaying hooks found in version: wordpress-6.7.1apply_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' ) );