• Resolved burrebista

    (@burrebista)


    Hello,

    It is possible to add a new currency?
    Can I insert some code?

    Thank you very much in advance!!

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Nirmal Kumar Ram

    (@sagarseth9)

    Yes, you can add new currency using the following code on your function.php

    function rpress_extra_currencies( $currencies ) {
    	$currencies['USD'] = __('US Dollar', 'rpress');
    	return $currencies;
    }
    add_filter('rpress_currencies', 'rpress_extra_currencies');

    Just replace USD and US Dollar with your currency symbol and text.

    abbas961

    (@abbas961)

    Yes, you can add new currency using the following code on your function.php

    Where is function.php located ? I can’t find it.

    Regards.

    Hi Nirmal, add the code in my child functions.php, but not seeing my currecy. Please help

    I know its a little late, but the file that Nirmal is talking about is the misc-functions.php. Located in wp-content\plugins\restropress\includes. You add the function there and it should work (worked for me)

    Good morning,

    You should not be editing the plugin files directly as your edits will get overwritten with the next update.

    The proper place to put this snippet is in your active theme’s functions.php. However, this will get overwritten too if you update your theme. I would recommend using a child theme so your changes are safe from updates.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘New currency’ is closed to new replies.