1. Home
  2. Filters
  3. Filter reference: wpforms_currencies

apply_filters( 'wpforms_currencies', $currencies );

Filters currency options available in WPForms Settings (listed under WPForms » Settings » Payments, in the Currency dropdown field).

Description

The wpforms_currencies filter provides a list of supported currencies.

Parameters

$currencies
(array) (Required) Supported currency options, including the details for each type of currency.

Source

pro/includes/payments/functions.php

More Information

Below shows an example of one currency option within the $currencies array.

'USD' => array(
	'name'                => esc_html__( 'U.S. Dollar', 'wpforms' ),
	'symbol'              => '$',
	'symbol_pos'          => 'left',
	'thousands_separator' => ',',
	'decimal_separator'   => '.',
	'decimals'            => 2,
),
Updated on October 10, 2018

Was this article helpful?