Title: mo88's Replies | WordPress.org

---

# mo88

  [  ](https://wordpress.org/support/users/mo88/)

 *   [Profile](https://wordpress.org/support/users/mo88/)
 *   [Topics Started](https://wordpress.org/support/users/mo88/topics/)
 *   [Replies Created](https://wordpress.org/support/users/mo88/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/mo88/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/mo88/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/mo88/engagements/)
 *   [Favorites](https://wordpress.org/support/users/mo88/favorites/)

 Search replies:

## Forum Replies Created

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

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Sky Login Redirect] Redirection to page they were reading isn’t working](https://wordpress.org/support/topic/redirection-to-page-they-were-reading-isnt-working/)
 *  Thread Starter [mo88](https://wordpress.org/support/users/mo88/)
 * (@mo88)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/redirection-to-page-they-were-reading-isnt-working/#post-8622907)
 * 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?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Clean Login] Redirect after login to current page](https://wordpress.org/support/topic/redirect-after-login-to-current-page/)
 *  Thread Starter [mo88](https://wordpress.org/support/users/mo88/)
 * (@mo88)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/redirect-after-login-to-current-page/#post-8563907)
 * 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](https://wordpress.org/support/users/param/)
   string redirect_url The original redirect URL. * [@param](https://wordpress.org/support/users/param/)
   object user The object describing the user who logged in. * [@return](https://wordpress.org/support/users/return/)
   string The new redirect URL. * [@author](https://wordpress.org/support/users/author/)
   Aelia <support@aelia.co> */ 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!!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Clean Login] Custom login redirect integration](https://wordpress.org/support/topic/custom-login-redirect-integration/)
 *  [mo88](https://wordpress.org/support/users/mo88/)
 * (@mo88)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/custom-login-redirect-integration/#post-8563875)
 * 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!!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Clean Login] Redirect after login to current page](https://wordpress.org/support/topic/redirect-after-login-to-current-page/)
 *  Thread Starter [mo88](https://wordpress.org/support/users/mo88/)
 * (@mo88)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/redirect-after-login-to-current-page/#post-8536951)
 * 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!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Clean Login] Redirect after login to current page](https://wordpress.org/support/topic/redirect-after-login-to-current-page/)
 *  Thread Starter [mo88](https://wordpress.org/support/users/mo88/)
 * (@mo88)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/redirect-after-login-to-current-page/#post-8529511)
 * 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)