Skip to content

Commit

Permalink
update: add comments describing the use cases for class
Browse files Browse the repository at this point in the history
  • Loading branch information
mralaminahamed committed Jan 3, 2025
1 parent a1d91bd commit d7c23c3
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions includes/ProductStatusRollback.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,18 @@
use Throwable;
use WC_Product;

/**
* Class to handle product status rollback operations.
*
* This class is responsible for processing batch operations to change the status
* of products from 'reject' to 'draft'. It includes methods to register necessary
* hooks and to process the batch operation.
*
* Use cases:
* - Automatically change the status of rejected products to draft.
* - Log the status changes and handle errors during the process.
* - Schedule the next batch operation if there are more products to process.
*/
class ProductStatusRollback {
/**
* Queue group identifier
Expand Down

0 comments on commit d7c23c3

Please sign in to comment.