Change Course Add to basket text

Home Forums Legacy Support Support queries How-to & Troubleshooting Change Course Add to basket text

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #102755
    visible
    Participant
    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
    #102908
    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/
Viewing 2 posts - 1 through 2 (of 2 total)
  • The topic ‘Change Course Add to basket text’ is closed to new replies.