• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer
WooCommerce a2z

WooCommerce a2z

WooCommerce

  • Home
  • Plugins
  • Blocks
  • Shortcodes
  • APIs
  • Classes
  • Files
  • Hooks
  • Sitemap
  • Blog
Home / APIs / ActionScheduler_HybridStore::query_actions() – Find actions matching the query in the secondary source first.

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

 View on GitHub View on Trac

Published: 6th April 2020 | Last updated: 6th May 2020

Primary Sidebar

Information

Function name: ActionScheduler_HybridStore::query_actions
Class ref: ActionScheduler_HybridStore
Plugin ref: WooCommerce
Version: 5.2.2
Sourcefile: packages/action-scheduler/classes/data-stores/ActionScheduler_HybridStore.php
File ref: packages/action-scheduler/classes/data-stores/ActionScheduler_HybridStore.php
Deprecated?: No
API Letters: A,H,Q

Footer

WooCommerce a2z
WooCommerce a2z
WooCommerce
WordPress 5.7.1
WordPress a2z
WordPress core a2z
Genesis Theme Framework a2z
Jetpack a2z
WordPress develop tests
Easy Digital Downloads a2z
WooCommerce a2z
Yoast SEO a2z
WordPress Blocks

Site:  woocommerce.wp-a2z.org
© Copyright WooCommerce a2z 2014-2021. All rights reserved.


Website designed and developed by Herb Miller
Proudly powered by WordPress and oik plugins

  • Home
  • Blog
  • Sitemap
  • Sites