LearnPress Plugin How to Add Currency ThimPress in Wordpress

LearnPress Plugin How to Add New Currency ThimPress in Wordpress


Hi Today I discussed LearnPress Plugin How to Add New Currency ThimPress in Wordpress. Wordpress woo-commerce LearnPress Plugin Add New Currency and Symbol Here Code.

LearnPress Plugin How to Add Currency ThimPress in Wordpress
LearnPress Plugin How to Add Currency ThimPress in Wordpress
 
Theme functions.php file Edit Paste this Code


Add currecies edit your own currency and then save and check it.

add_filter( 'learn_press_get_payment_currencies', 'add_my_currency' );

function add_my_currency( $currencies ) {

     $currencies['PKR'] = 'Pakistan';

     return $currencies;

}

add_filter('learn_press_currency_symbol', 'add_my_currency_symbol', 10, 2);

function add_my_currency_symbol( $currency_symbol, $currency ) {

     switch( $currency ) {

         case 'PKR': $currency_symbol = 'Rs.'; break;

     }

     return $currency_symbol;

}
LearnPress Plugin How to Add Currency ThimPress in Wordpress Dev2Tricks 5 of 5
LearnPress Plugin How to Add New Currency ThimPress in Wordpress Hi Today I discussed LearnPress Plugin How to Add New Currency ThimPr...

Share this

Related Posts

Previous
Next Post »

4 comments

comments
21 December 2017 at 14:39 delete

Try not to make site guests move from page to page keeping in mind the end goal to buy an item. Give them a straightforward, simple to-utilize site that they'll readily come back to. swift member 2.0 review

Reply
avatar
26 February 2018 at 23:21 delete

This post is like professional! And if you want to find best premium wordpress templates for any kind of business go here https://wordpresstemplates.ch/

Reply
avatar
11 March 2018 at 16:05 delete

Where is the directory where this
file (functions.php?

Reply
avatar
27 April 2018 at 11:17 delete

wp-content -> themes-> Active Themefolder -> functions.php

Reply
avatar