Title: change the register_url
Last modified: October 15, 2021

---

# change the register_url

 *  [cristianec9](https://wordpress.org/support/users/cristianec9/)
 * (@cristianec9)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/register_url/)
 * 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/&#8221](https://lucificacionart.es/mi-cuenta/&#8221);
 * Thank you
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fregister_url%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Support [Md. Jobayer Al Mahmud](https://wordpress.org/support/users/jobayertuser/)
 * (@jobayertuser)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/register_url/#post-14977490)
 * Hello [@cristianec9](https://wordpress.org/support/users/cristianec9/),
 * Just change the url `return get_the_permalink ($ student_register_page);` to `
   return get_the_permalink ($your_expected_page_link);`
 *  Thread Starter [cristianec9](https://wordpress.org/support/users/cristianec9/)
 * (@cristianec9)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/register_url/#post-14977525)
 * Hello [@jobayertuser](https://wordpress.org/support/users/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.

 * ![](https://ps.w.org/tutor/assets/icon-256x256.jpg?rev=3598934)
 * [Tutor LMS - eLearning and online course solution](https://wordpress.org/plugins/tutor/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/tutor/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/tutor/)
 * [Active Topics](https://wordpress.org/support/plugin/tutor/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/tutor/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/tutor/reviews/)

## Tags

 * [php](https://wordpress.org/support/topic-tag/php/)
 * [tutor lms](https://wordpress.org/support/topic-tag/tutor-lms/)

 * 2 replies
 * 2 participants
 * Last reply from: [cristianec9](https://wordpress.org/support/users/cristianec9/)
 * Last activity: [4 years, 10 months ago](https://wordpress.org/support/topic/register_url/#post-14977525)
 * Status: not resolved