This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// DEPRECATED. See https://github.com/alleyinteractive/wp-bulk-task as the successor to this trait. | |
/** | |
* Chunk up the task when you need to iterate over many posts. | |
* | |
* For instance, to iterate over every post on the site and add post meta: | |
* | |
* $this->bulk_task( function( $post ) { |