Issue-39: Allow an implementer-provided callback to be executed after each batch #41
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
Fixes #39
This pull request implements the feature request for allowing an implementer-provided callback to be executed after each bulk task batch. This feature aims to make the
after_batch
function pluggable, providing flexibility for different implementations and use cases.Description
The bulk task functionality currently includes an
after_batch
function which is executed after each batch is processed. However, this function is not pluggable, limiting the ability to customize post-batch processing. This pull request addresses this limitation by allowing an implementer to plug in their own callback to be executed after each batch.Reference: wp-bulk-task implementation
Use Case
This feature was requested to fulfill a specific need identified by Alley developers, as documented here.
Acceptance Criteria
after_batch
function.Additional Notes
This feature request is similar to a previous request (see #38 for context).
For more details, refer to the original issue here.