Tribe__Tickets__Commerce__Currency::get_currency_by_provider( int|null $post_id, string|null $provider = null )

Get the Currency Formatting Information for a Provider.


Parameters

$post_id

(int|null) (Required) The id of the post with tickets.

$provider

(string|null) (Optional) The ticket provider class name.

Default value: null


Top ↑

Return

(array) an array of formatting details


Top ↑

Source

File: src/Tribe/Commerce/Currency.php

	public function get_currency_by_provider( $post_id, $provider = null ) {
		return [
			'symbol'             => $this->get_provider_symbol( $provider ),
			'placement'          => $this->get_provider_symbol_position( $provider, $post_id ),
			'decimal_point'      => $this->get_currency_decimal_point( $provider ),
			'thousands_sep'      => $this->get_currency_thousands_sep( $provider ),
			'number_of_decimals' => $this->get_number_of_decimals( $provider ),
		];
	}

Top ↑

Changelog

Changelog
Version Description
4.11.0 Introduced.