akismet_delete_commentmeta_batch

akismet_delete_commentmeta_batch

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: action

See hook in core

Displaying hooks found in version: wordpress-6.7.2

do_action('akismet_delete_commentmeta_batch') is found 2 times:

  • /wp-content/plugins/akismet/class.akismet.php line 629
    625
    626
    627
    628
    629
    630
    631
    632
    633
    634
    635
                delete_comment_meta( $comment_id, 'akismet_as_submitted' );
                do_action( 'akismet_batch_delete_count', __FUNCTION__ );
            }
     
            do_action( 'akismet_delete_commentmeta_batch', is_countable( $comment_ids ) ? count( $comment_ids ) : 0 );
        }
     
        if ( apply_filters( 'akismet_optimize_table', ( mt_rand( 1, 5000 ) == 11 ), $wpdb->commentmeta ) ) { // lucky number
            $wpdb->query( "OPTIMIZE TABLE {$wpdb->commentmeta}" );
        }
    }
  • /wp-content/plugins/akismet/class.akismet.php line 664
    661
    662
    663
    664
    665
    666
    667
    668
    669
    670
            $last_meta_id = $commentmeta->meta_id;
        }
     
        do_action( 'akismet_delete_commentmeta_batch', $commentmeta_deleted );
     
        // If we're getting close to max_execution_time, quit for this round.
        if ( microtime( true ) - $start_time > $max_exec_time ) {
            return;
        }
    }