Tip: Redirect a WordPress user after login

by

in

This is a simple trick, really… but it’s so useful ! How many people asked me “how do i redirect a user once he’s logged in?”…. crazy! So here is a little bit of code that will help dealing with this crucial point! ;-)

Just place this lines of code in you functions.php or in a custom plugin:

3 responses to “Tip: Redirect a WordPress user after login”

  1. A la place de return home_url( ‘/wp-admin/’ ); on peut mettre return admin_url();

  2. wasif Shafiq!

    thankx its working .. gr8!!!

Leave a Reply