Title: wp-redirect
Last modified: October 3, 2017

---

# wp-redirect

 *  [benjaminsaarde](https://wordpress.org/support/users/benjaminsaarde/)
 * (@benjaminsaarde)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/wp-redirect/)
 * Hi,
    I am creating a multisite network. I am using this peace of code: wp_redirect(
   $current_url = home_url(add_query_arg(array(),$wp->request)) ); and it is working
   great. My only problem is, I want people to be redirected to their home-url/wp-
   admin. How do I specifie that I do not only want people to be redirected to their
   home url, but also wp-admin? Thank you 🙂

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

 *  Moderator [bcworkz](https://wordpress.org/support/users/bcworkz/)
 * (@bcworkz)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/wp-redirect/#post-9558900)
 * Use get_blogs_of_user() to get an array of the user’s blogs. I’m not sure how
   you would decide which blog to use if there are more than one. You could arbitrarily
   take the first in the list, or maybe the one with the lowest ID, which is probably
   the same thing anyway. Each blog item listed is a stdClass object of blog data.
   Get the “siteurl” property and concatenate “/wp-admin/” to it.
 *  Thread Starter [benjaminsaarde](https://wordpress.org/support/users/benjaminsaarde/)
 * (@benjaminsaarde)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/wp-redirect/#post-9567368)
 * Thanks 🙂

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

The topic ‘wp-redirect’ is closed to new replies.

 * In: [Developing with WordPress](https://wordpress.org/support/forum/wp-advanced/)
 * 2 replies
 * 2 participants
 * Last reply from: [benjaminsaarde](https://wordpress.org/support/users/benjaminsaarde/)
 * Last activity: [8 years, 8 months ago](https://wordpress.org/support/topic/wp-redirect/#post-9567368)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
