WooCommerce currency position based on custom currency

Viewed 15

There are two currencies on the WordPress/WooCommerce website. One currency is GBP and the other one is custom currency such as "ABC". The default currency symbol position is LEFT. However, We need to use the custom currency symbol on the right side. I tried some custom functions, but they did not work. How can I fix it? I'm still trying to practice PHP :( Thank you.

add_filter( 'woocommerce_currency_pos', 'change_currency_position' );
function change_currency_position(){
if( isset( $_GET['currency'], 'ABC' == $_GET['currency'] )) {
    return 'right';
   }
}
0 Answers
Related