Gravity Forms does not include AED (United Arab Emirates Dirham) currency by default. However, the plugin is flexible enough to allow the addition of custom currencies using the gform_currencies filter.

The following code snippet demonstrates how to add AED currency support to Gravity Forms. You can include this PHP code in the functions.php file of your child theme, or use the Code Snippets plugin.

<?php
/**
 * Add UAE Dirham currency to Gravity Forms.
 *
 * @param array $currencies The current currencies registered in Gravity Forms.
 *
 * @return array List of supported currencies.
 */
function gf_add_aed_currency( $currencies ) {
	$currencies['AED'] = array(
		'name'               => 'United Arab Emirates Dirham',
		'symbol_left'        => 'د',
		'symbol_right'       => '',
		'symbol_padding'     => ' ',
		'thousand_separator' => ',',
		'decimal_separator'  => '.',
		'decimals'           => 2,
		'code'               => 'AED',
	);

	return $currencies;
}
add_filter( 'gform_currencies', 'gf_add_aed_currency' );

astriol avatar
Pramod

Hey I am Pramod Jodhani from IND

Leave a Reply

Your email address will not be published. Required fields are marked *