Add Additional Currency to WP Hotel Booking
Additional payment currencies can be added through hb_payment_currencies filter.
add_filter( 'hb_payment_currencies', 'lava_add_custom_payment_currency' );
function lava_add_custom_payment_currency( $currencies ) {
$currencies['RSD'] = 'Serbian Dinar';
return $currencies;
}Additional currency symbols can be added through hb_currency_symbol filter.
add_filter( 'hb_currency_symbol', 'lava_add_custom_currency_symbol', 10, 2 );
function lava_add_custom_currency_symbol( $currency_symbol, $currency ) {
if ( $currency == 'RSD' ) {
$currency_symbol = 'din';
}
return $currency_symbol;
}Copy paste the above code to your child theme’s functions.php file, and modify the currency to yours if different from the above.