Tribe__Tickets__Commerce__PayPal__Main::get_order_statuses()

Returns the list of PayPal tickets order stati.


Return

(array) An associative array in the [ <slug> => <label> ] format.


Top ↑

Source

File: src/Tribe/Commerce/PayPal/Main.php

	public function get_order_statuses() {

		$statuses       = tribe( 'tickets.status' )->get_all_provider_statuses( 'tpp' );
		$order_statuses = array();
		foreach ( $statuses as $status ) {
			$order_statuses[ $status->provider_name ] = _x( $status->name, 'a PayPal ticket order status', 'event-tickets' );
		}

		/**
		 * Filters the list of PayPal tickets order stati.
		 *
		 * @since 4.7
		 *
		 * @param array $order_statuses
		 *
		 * @return array An associative array in the [ <slug> => <label> ] format.
		 */
		return apply_filters( 'tribe_tickets_commerce_paypal_order_stati', $order_statuses );
	}

Top ↑

Changelog

Changelog
Version Description
4.7 Introduced.