Skip to content

Instantly share code, notes, and snippets.

@pramodjodhani
Last active July 24, 2025 13:22
Show Gist options
  • Save pramodjodhani/3798ed1ff2cd3a417236d4765b275a14 to your computer and use it in GitHub Desktop.
Save pramodjodhani/3798ed1ff2cd3a417236d4765b275a14 to your computer and use it in GitHub Desktop.
Gravity Forms: Modify Philippine Peso currency to display ₱ symbol instead of PHP text.
<?php
/**
* Modify Philippine Peso currency to display ₱ symbol instead of PHP text.
*
* @param array $currencies The current currencies registered in Gravity Forms.
* @return array List of currencies with modified PHP currency.
*/
function modify_php_currency_symbol( $currencies ) {
$currencies['PHP'] = array(
'name' => 'Philippine Peso',
'symbol_left' => '₱',
'symbol_right' => '',
'symbol_padding' => '',
'thousand_separator' => ',',
'decimal_separator' => '.',
'decimals' => 2,
'code' => 'PHP',
);
return $currencies;
}
add_filter( 'gform_currencies', 'modify_php_currency_symbol' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment