alleyinteractive / wp-bulk-task

A library to assist with running performant bulk tasks against WordPress database objects.
GNU General Public License v2.0
15 stars 0 forks source link

Allow an implementer-provided callback to be executed after each batch #39

Open renatonascalves opened 2 months ago

renatonascalves commented 2 months ago

Description

Bulk task already has an after_batch function but it's not pluggable. The idea here is to allow an implementer to plug its own callback to be executed after each batch.

https://github.com/alleyinteractive/wp-bulk-task/blob/main/src/class-bulk-task.php#L84-L124

Use Case

Alley devs: The need for this feature came from this.

renatonascalves commented 2 months ago

This is a similar request to #38