ActionScheduler_HybridStore::query_actions
Find actions matching the query in the secondary source first. If any are found, migrate them immediately. Then the secondary store will contain the canonical results.
Метод класса: ActionScheduler_HybridStore{}
Хуков нет.
Возвращает
int[].
Использование
$ActionScheduler_HybridStore = new ActionScheduler_HybridStore(); $ActionScheduler_HybridStore->query_actions( $query, $query_type );
- $query(массив)
- Query arguments.
По умолчанию:array() - $query_type(строка)
- Whether to select or count the results. Default, select.
По умолчанию:'select'
Код ActionScheduler_HybridStore::query_actions() ActionScheduler HybridStore::query actions WC 11.2.1
public function query_actions( $query = array(), $query_type = 'select' ) {
$found_unmigrated_actions = $this->secondary_store->query_actions( $query, 'select' );
if ( ! empty( $found_unmigrated_actions ) ) {
$this->migrate( $found_unmigrated_actions );
}
return $this->primary_store->query_actions( $query, $query_type );
}