BatchFetcher::fetch() – Retrieve a list of actions.

You appear to be a bot. Output may be restricted

Description

Retrieve a list of actions.

Usage

$int[] = BatchFetcher::fetch( $count );

Parameters

$count
( int ) optional default: 10 – The number of actions to retrieve

Returns

int[] A list of action IDs

Source

File name: woocommerce/packages/action-scheduler/classes/migration/BatchFetcher.php
Lines:

1 to 10 of 10
  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 [];
  }
 

 View on GitHub View on Trac