Site Lock Redirection to homepage

Home Forums Legacy Support Support queries How-to & Troubleshooting Site Lock Redirection to homepage

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #39036
    vasilisgtr
    Spectator
    I am using the Site Lock feature. How can I change the url so to redirect users to homepage instead of members page?
    #39152
    H.K. Latiyan
    Participant
    Did you mean redirect users after login ? If yes then this setting is present in the wp-admin->LMS->settings->student login redirect and instructor login redirect. If you mean redirect after activation, then this setting is present in the wp-admin->wplms->buddypress->Redirect Page on User Activation
    #39164
    vasilisgtr
    Spectator
    Hi, I mean after login. I did that, but I want to redirect to my main page(which now is not set as home because at the time my home page is the Login page) The drop-down options here does not allow me to select a custom page. Can I did that manually and make on of these options to redirect me to my custom home page?
    #39174
    H.K. Latiyan
    Participant
    please use this code in your wplms-customizer.php file present in your wplms customizer plugin. add_filter('login_redirect','wplms_custom_login_redirection',999,3);  function wplms_custom_login_redirection($redirect_url,$request_url,$user){     $url = 'http://localhost/wplms2/activity';     return $url; } NOTE: Change the url to your custom page.
    #39239
    vasilisgtr
    Spectator
    Thanks! That worked
    #39244
    H.K. Latiyan
    Participant
    Thanks for confirming, so closing the topic.
Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Site Lock Redirection to homepage’ is closed to new replies.