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 |
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; }