Title: login/logout/register redirect
Last modified: August 31, 2016

---

# login/logout/register redirect

 *  [celsocos](https://wordpress.org/support/users/celsocos/)
 * (@celsocos)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/loginlogoutregister-redirect/)
 * Hello. I found in the codex that login/logout url is ok with redirection
    wp_login_url(
   string $redirect = ”, bool $force_reauth = false )
 * but the same is not true to register
    wp_registration_url ()
 * I am updating a plugin for custom login/logout/registration and the custom login
   page works fine, but custom registration page does not work. Does anybody had
   this issue before? I was expecting login/logout/register functions work in a 
   similar way…
 * This works: wp_login_url( $item_redirect[0] );
    This fails: wp_registration_url(
   $item_redirect[0] );
 * How can I solve it? Any guess?
    Regards

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

 *  [graphicscove](https://wordpress.org/support/users/graphicscove/)
 * (@graphicscove)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/loginlogoutregister-redirect/#post-7043765)
 * You can use the filter registration_redirect to pass your own URL:
 *     ```
       function wp_registration_redirect() {
           return home_url( '/my-page' );
       }
   
       add_filter( 'registration_redirect', 'wp_registration_redirect' );
       ```
   
 * Drop it into functions.php or a plugin.
 *  Thread Starter [celsocos](https://wordpress.org/support/users/celsocos/)
 * (@celsocos)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/loginlogoutregister-redirect/#post-7043928)
 * Ok, thank you. I will try this. Regards,
    Celso

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

The topic ‘login/logout/register redirect’ is closed to new replies.

## Tags

 * [login](https://wordpress.org/support/topic-tag/login/)
 * [Logout](https://wordpress.org/support/topic-tag/logout/)
 * [redirect](https://wordpress.org/support/topic-tag/redirect/)

 * In: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
 * 2 replies
 * 2 participants
 * Last reply from: [celsocos](https://wordpress.org/support/users/celsocos/)
 * Last activity: [10 years, 6 months ago](https://wordpress.org/support/topic/loginlogoutregister-redirect/#post-7043928)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
