Title: avoiding redirection to dashboard
Last modified: July 4, 2019

---

# avoiding redirection to dashboard

 *  Resolved [olivierpages](https://wordpress.org/support/users/olivierpages/)
 * (@olivierpages)
 * [6 years, 10 months ago](https://wordpress.org/support/topic/avoiding-redirection-to-dashboard/)
 * Hello
 * I installed your plugin which looks great with many options to set.
 * But I am looking for a way to avoid the user to be redirected to its dashboard
   after login.
 * I use a Membership plugin (Memberpress) which settings are now overridden by 
   Directorist.
 * Can you provide a custom code to add to my functions.php file of my child’s theme
   in order to avoid the redirection to the user dashboard?
 * Thank you for your help
 * Very best
 * Oli

Viewing 1 replies (of 1 total)

 *  [aazztech](https://wordpress.org/support/users/aazztech/)
 * (@aazztech)
 * [6 years, 10 months ago](https://wordpress.org/support/topic/avoiding-redirection-to-dashboard/#post-11718470)
 * Hi Oli,
    Please put the code at your child theme’s functions.php file to avoid
   the redirection.
 *     ```
       function custom_redirection($redirect_to, $requested_redirect_to, $user) {
           return $requested_redirect_to;
       }
       add_action( 'login_redirect', 'custom_redirection', 10, 3 );
       ```
   

Viewing 1 replies (of 1 total)

The topic ‘avoiding redirection to dashboard’ is closed to new replies.

 * ![](https://ps.w.org/directorist/assets/icon-256x256.gif?rev=3185058)
 * [Directorist: AI-Powered Business Directory, Listings & Classified Ads](https://wordpress.org/plugins/directorist/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/directorist/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/directorist/)
 * [Active Topics](https://wordpress.org/support/plugin/directorist/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/directorist/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/directorist/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [aazztech](https://wordpress.org/support/users/aazztech/)
 * Last activity: [6 years, 10 months ago](https://wordpress.org/support/topic/avoiding-redirection-to-dashboard/#post-11718470)
 * Status: resolved