Hi, I have added the following to wplms customiser
add_filter('wplms_take_this_course_button_label','my_custom_labels');
function my_custom_labels($html,$course_id){
$html='Purchase ';
}
and this to functions.php
add_filter( 'woocommerce_product_single_add_to_cart_text', 'woo_custom_cart_button_text' ); // 2.1 +
function woo_custom_cart_button_text() {
return __( 'Purchase', 'woocommerce' );
}
but none will change the button text for course add to basket.
Any way of doing this?
Thanks
You should not change this string via code.
You can simply translate this string by using loco translator plugin.
Follow this guide for translation :
https://wplms.io/support/knowledge-base/translate-using-loco-translate-plugin/