Last active
July 24, 2025 13:22
-
-
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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