akismet_delete_commentmeta_batch

akismet_delete_commentmeta_batch

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

See hook in core

Displaying hooks found in version: wordpress-6.5.2

do_action('akismet_delete_commentmeta_batch') is found 2 times:

  • /wp-content/plugins/akismet/class.akismet.php line 561
    				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 594
     
    				$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;
    		}