Forum Replies Created

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter mo88

    (@mo88)

    Hey Matt-
    I tried deactivating Clean Login and using just Sky Login Redirect but then it seems that there’s no way for a user to login because if they click on the “login” button that I have in the header or click the “login” link on each of the business pages then [clean-login-edit] is displayed on the page. Your plugin is ideal for me, can your plugin work with a another plugin that used for logging in?
    If so, what should I do so that I can use Clean Login plugin and use Sky Login to make it redirect to the page that they were on before logging in?

    Thread Starter mo88

    (@mo88)

    Hi again Alberto, I have an update on the question I previously asked you about:

    I am trying to use this filter (see below) in order to make it so that after a person logs in, the page that they were previously viewing before they logged in is then displayed again. I have created a “child” version of the Clean-login plugin by copying/pasting the top portion of the code from clean-login.php file into a new .php file that I named “clean-login-my edits.php” Then I went to Plugins in WordPress and activated it. I then placed the code of this filter in my new .php file but now I don’t know what code I need to change or add in this filter to make the redirection go to the previous page that the person was viewing before they logged in.

    /**
    * Adds the filer to alter the redirect URL dynamically.
    *
    * @param string redirect_url The original redirect URL.
    * @param object user The object describing the user who logged in.
    * @return string The new redirect URL.
    * @author Aelia <[email protected]>
    */
    add_filter(‘cl_login_redirect_url’, function($redirect_url, $user) {
    // Call your custom redirect function to alter the URL dymamically
    // and return it
    returnmy_login_redirect($redirect_url, $_REQUEST, $user);
    }, 10, 2);

    Can anyone please tell me

    1. Have I created the child version of the plugin correctly?

    2. What to do with this filter (add code or change code) in order to make the redirection go back to the previous page that was being viewed before a person logins in?

    Any help is much appreciated!!

    Hi there- I am trying to use this filter in order to make it so that after a person logs in, the page that they were previously viewing before they logged in is then displayed again. I have created a “child” version of the Clean-login plugin by copying/pasting the top portion of the code from
    clean-login.php file into a new .php file that I named “clean-login-my edits.php” I then placed the code of this filter in my new .php file but now I don’t know what code I need to change in this filter to make the redirection go to the previous page that the person was vowing before they logged in.

    Can anyone please tell me

    1. Have I created the child version of the plugin correctly?

    2. What to do with this filter (add code or change code) in order to make the redirection go back to the previous page that was being viewed before a person logins in?

    Any help is much appreciated!!

    Thread Starter mo88

    (@mo88)

    Hi Alberto,
    I’m sorry, I’m still unclear about it and have three questions.

    1. Which file do I place these two filters?

    2. Where specifically within the file do I place the filters?

    3. Is there more code that goes with these filters?

    Thanks in advance!

    Thread Starter mo88

    (@mo88)

    Hi again Alberto,
    I received your response, thank you so much for getting back me. However, I don’t see where the code is that you provided for the hook. Can you please advise?

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