• Hello there,
    I would like to be able to change the link that appears when you are not registered in the store when buying a course. That is, in the pop-up window that appears the option to register once you add a course to the cart.

    I have asked Tutor LMS support and they have told me that I should change the register_url function found in \ wp-content \ plugins \ tutor \ classes \ Utils.php


    public function student_register_url () {
    $ student_register_page = (int) $ this-> get_option (‘student_register_page’);

    if ($ student_register_page) {
    return get_the_permalink ($ student_register_page);
    }

    return false;
    }

    Please, could you tell me how I should modify this function so that when you click on the link it will direct you to the page
    https://lucificacionart.es/mi-cuenta/”

    Thank you

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Md. Jobayer Al Mahmud

    (@jobayertuser)

    Hello @cristianec9,

    Just change the url return get_the_permalink ($ student_register_page); to return get_the_permalink ($your_expected_page_link);

    Thread Starter cristianec9

    (@cristianec9)

    Hello @jobayertuser ,

    Once that is done, how can I set the new address where it should be when clicking on the registration link?

    Because what I want to do is that when I click on the link, I go to the current “my account” page, not that this page is replaced by the default one by Tutot LMS.

    Thank you so much

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘change the register_url’ is closed to new replies.