Action_Scheduler\Migration
BatchFetcher::fetch
Retrieve a list of actions.
Метод класса: BatchFetcher{}
Хуков нет.
Возвращает
int[]. A list of action IDs
Использование
$BatchFetcher = new BatchFetcher(); $BatchFetcher->fetch( $count );
- $count(int)
- The number of actions to retrieve.
По умолчанию:10
Код BatchFetcher::fetch() BatchFetcher::fetch WC 10.5.2
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 array();
}