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.2

apply_filters('akismet_delete_comment_interval') is found 2 times:

  • /wp-content/plugins/akismet/class.akismet.php line 565
    561
    562
    563
    564
    565
    566
    567
    568
    569
    570
    571
    * 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
    175
    176
    177
    178
    179
    180
    181
    182
    183
    184
    <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' )
        );