Hi ihm365,
Thank you for your patience.
If you’d like to implement a custom currency switcher, you can modify the course price using LearnPress hooks. Here’s how you can do it:
- For the new model:
You can use the following hook to modify the course price:
apply_filters( 'learnPress/course/price', (float) $price, $this->get_id() );
You can find this hook in the file:
‘wp-content/plugins/learnpress/inc/Models/CourseModel.php’
2. For the old model:
You can use the following hook:
apply_filters( 'learn-press/course/price', $price, $this->get_id() );
This hook is located in:
‘wp-content/plugins/learnpress/inc/course/abstract-course.php’
By hooking into these filters, you can write custom code to adjust the course price based on the selected currency.
This will give you the flexibility to implement a currency switcher as per your needs.
Best regards,
Brianvu-tp