ActionScheduler_HybridStore::query_actions │ public │ WC 1.0

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.

Method of the class: ActionScheduler_HybridStore{}

No Hooks.

Returns

int[].

Usage

$ActionScheduler_HybridStore = new ActionScheduler_HybridStore();
$ActionScheduler_HybridStore->query_actions( $query, $query_type );
$query(array)
Query arguments.
Default: array()
$query_type(string)
Whether to select or count the results. Default, select.
Default: 'select'

ActionScheduler_HybridStore::query_actions() code WC 11.1.2

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 );
}