WordPress at Your Fingertips
function is not described

Action_Scheduler\Migration

BatchFetcher::fetch() public WC 1.0

Retrieve a list of actions.

{} It's a 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

Code of BatchFetcher::fetch() WC 6.1.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 [];
}