ms_model_settings_get_currencies

Get available currencies.

Description

(array) apply_filters( 'ms_model_settings_get_currencies', (callback) $array ); 

Returns (array)

{ @type string $currency The currency. @type string $title The currency title. }

Parameters (1)

0. $array — Optional. (callback) => array( 'AUD' => __( 'AUD - Australian Dollar', 'membership2' ), 'BRL' => __( 'BRL - Brazilian Real', 'membership2' ), 'CAD' => __( 'CAD - Canadian Dollar', 'membership2' ), 'CHF' => __( 'CHF - Swiss Franc', 'membership2' ), 'CZK' => __( 'CZK - Czech Koruna', 'membership2' ), 'DKK' => __( 'DKK - Danish Krone', 'membership2' ), 'EUR' => __( 'EUR - Euro', 'membership2' ), 'GBP' => __( 'GBP - Pound Sterling', 'membership2' ), 'HKD' => __( 'HKD - Hong Kong Dollar', 'membership2' ), 'HUF' => __( 'HUF - Hungarian Forint', 'membership2' ), 'ILS' => __( 'ILS - Israeli Shekel', 'membership2' ), 'JPY' => __( 'JPY - Japanese Yen', 'membership2' ), 'MYR' => __( 'MYR - Malaysian Ringgits', 'membership2' ), 'MXN' => __( 'MXN - Mexican Peso', 'membership2' ), 'NOK' => __( 'NOK - Norwegian Krone', 'membership2' ), 'NZD' => __( 'NZD - New Zealand Dollar', 'membership2' ), 'PHP' => __( 'PHP - Philippine Pesos', 'membership2' ), 'PLN' => __( 'PLN - Polish Zloty', 'membership2' ), 'RUB' => __( 'RUB - Russian Ruble', 'membership2' ), 'SEK' => __( 'SEK - Swedish Krona', 'membership2' ), 'SGD' => __( 'SGD - Singapore Dollar', 'membership2' ), 'TWD' => __( 'TWD - Taiwan New Dollars', 'membership2' ), 'THB' => __( 'THB - Thai Baht', 'membership2' ), 'USD' => __( 'USD - U.S. Dollar', 'membership2' ), 'ZAR' => __( 'ZAR - South African Rand', 'membership2' ), )
The array.

Usage

To run the hook, copy the example below.
  1. $array = apply_filters( 'ms_model_settings_get_currencies', $array ); 
  2.  
  3. if ( !empty( $array ) ) { 
  4.  
  5. // everything has led up to this point... 
  6.  
  7.  
The following example is for adding a hook callback.
  1. // define the ms_model_settings_get_currencies callback 
  2. function filter_ms_model_settings_get_currencies( $array ) { 
  3. // make filter magic happen here... 
  4. return $array
  5. }; 
  6.  
  7. // add the filter 
  8. add_filter( 'ms_model_settings_get_currencies', 'filter_ms_model_settings_get_currencies', 10, 1 ); 
To remove a hook callback, use the example below.
  1. // remove the filter 
  2. remove_filter( 'ms_model_settings_get_currencies', 'filter_ms_model_settings_get_currencies', 10, 1 ); 

Defined (1)

The filter is defined in the following location(s).

/app/model/class-ms-model-settings.php  
  1. $Currencies = apply_filters(