WordPress at Your Fingertips
function is not described

ActionScheduler_Store::query_action() public WC .

Run query to get a single action ID.

{} It's a method of the class: ActionScheduler_Store{}

No Hooks.

Return

Int|null.

Usage

$ActionScheduler_Store = new ActionScheduler_Store();
$ActionScheduler_Store->query_action( $query );
$query(array) (required)
Query parameters.

Notes

  • See: ActionScheduler_Store::query_actions for $query arg usage but 'per_page' and 'offset' can't be used.

Changelog

Since . Introduced.
Since x.x.x

Code of ActionScheduler_Store::query_action() WC 6.1.0

public function query_action( $query ) {
	$query['per_page'] = 1;
	$query['offset']   = 0;
	$results           = $this->query_actions( $query );

	if ( empty( $results ) ) {
		return null;
	} else {
		return (int) $results[0];
	}
}