diff --git a/views/batch-manage.php b/views/batch-manage.php index 3c67a90..c3ff28b 100644 --- a/views/batch-manage.php +++ b/views/batch-manage.php @@ -1,96 +1,122 @@ get_batch($id); -if(is_null($batch)) { +$batch = WP_Batch_Processor::get_instance()->get_batch( $id ); +if ( is_null( $batch ) ) { echo 'Batch not found.'; + return; } $percentage = $batch->get_percentage(); + +$items_count = $batch->get_items_count(); +$processed_count = $batch->get_processed_count(); ?>