You appear to be a bot. Output may be restricted
Description
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.
Usage
$int[] = ActionScheduler_HybridStore::query_actions( $query, $query_type );
Parameters
- $query
- ( array ) optional –
- $query_type
- ( string ) optional default: select – Whether to select or count the results. Default, select.
Returns
int[]
Source
File name: woocommerce/packages/action-scheduler/classes/data-stores/ActionScheduler_HybridStore.php
Lines:
1 to 9 of 9
public function query_actions( $query = [], $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 ); }