Action_Scheduler\Migration
BatchFetcher::fetch()
Retrieve a list of actions.
Method of the class: BatchFetcher{}
No Hooks.
Return
Int[]
. A list of action IDs
Usage
$BatchFetcher = new BatchFetcher(); $BatchFetcher->fetch( $count );
- $count(int)
- The number of actions to retrieve.
Default: 10
BatchFetcher::fetch() BatchFetcher::fetch code WC 9.5.1
public function fetch( $count = 10 ) { foreach ( $this->get_query_strategies( $count ) as $query ) { $action_ids = $this->store->query_actions( $query ); if ( ! empty( $action_ids ) ) { return $action_ids; } } return []; }