Tribe__Tickets__Commerce__Currency::get_currency_config_for_provider( array|string $providers, int|null $post_id = null )
Get the Currency Configuration for all Passed Providers.
Contents
Parameters
- $providers
-
(array|string) (Required) The ticket provider class name.
- $post_id
-
(int|null) (Optional) The id of the post with tickets.
Default value: null
Return
(array)
Source
File: src/Tribe/Commerce/Currency.php
public function get_currency_config_for_provider( $providers, $post_id = null ) {
if ( ! is_array( $providers ) ) {
$providers = (array) $providers;
}
$currency = [];
foreach ( $providers as $provider ) {
$currency[ $provider ] = $this->get_currency_by_provider( $post_id, $provider );
}
return $currency;
}
Changelog
| Version | Description |
|---|---|
| 4.11.0 | Introduced. |