Tribe__Tickets__Status__Manager::get_trigger_statuses( $commerce )

Get the Trigger Status for Ticket Generation or Sending for a given eCommerce


Parameters

$commerce

(Required) string a string of the Commerce System to get statuses from


Top ↑

Return

(array) an array of the commerce's statuses and name matching the provide action


Top ↑

Source

File: src/Tribe/Status/Manager.php

	public function get_trigger_statuses( $commerce ) {

		$trigger_statuses = [];

		$commerce = $this->check_for_full_provider_name( $commerce );

		if ( ! isset( $this->statuses[ $commerce ]->statuses ) ) {
			return $trigger_statuses;
		}

		$filtered_statuses = wp_list_filter( $this->statuses[ $commerce ]->statuses, [
			'trigger_option' => true,
		] );

		foreach ( $filtered_statuses as $status ) {
			$trigger_statuses[ $status->provider_name ] = $status->name;
		}

		return $trigger_statuses;

	}

Top ↑

Changelog

Changelog
Version Description
4.10 Introduced.