• satrofim

    (@satrofim)


    Good afternoon!
    I want to replace the Russian ruble with a ruble symbol Р

    Who will tell you how to do it?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Contributor Ken Nguyen

    (@kendy73)

    Hi,

    Put this into your theme’s functions.php.

    /**
     * Add new currency symbol
     *
     * @param $currency_symbol
     * @param $currency
     *
     * @return string
     */
    function thim_new_learnpress_currency_symbol( $currency_symbol, $currency ) {
    	if ( $currency == 'RUB' ) {
    		$currency_symbol = 'Р';
    	}
    	return $currency_symbol;
    }
    
    add_filter( 'learn_press_currency_symbol', 'thim_new_learnpress_currency_symbol', 10, 2 );

    Try and let me know 🙂

    Thread Starter satrofim

    (@satrofim)

    Yes, but I need an international ruble symbol

    Plugin Contributor Ken Nguyen

    (@kendy73)

    Just replace this one http://prntscr.com/es3sy2 with the ruble symbol 🙂

    Niloy

    (@im_niloy)

    Great Solution.

    Plugin Contributor Ken Nguyen

    (@kendy73)

    🙂 Hope you guys like my LearnPress and don’t forget to rate it a 5*. Thanks!

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