Tip: Redirect a WordPress user after login

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:

About the author

Remi Hey! My name is Rémi Corson, I'm a French WordPress Developer, I code stuff and I write from time to time ;-) Buy a coffee
Show your support

Related Posts


  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