registration_redirect

Filters the registration redirect URL.

Description

apply_filters( 'registration_redirect', (string) $registration_redirect ); 

Parameters (1)

0. $registration_redirect (string)
The redirect destination URL.

Usage

To run the hook, copy the example below.
  1. $registration_redirect = apply_filters( 'registration_redirect', $registration_redirect ); 
  2.  
  3. if ( !empty( $registration_redirect ) ) { 
  4.  
  5. // everything has led up to this point... 
  6.  
  7.  
The following example is for adding a hook callback.
  1. // define the registration_redirect callback 
  2. function filter_registration_redirect( $registration_redirect ) { 
  3. // make filter magic happen here... 
  4. return $registration_redirect
  5. }; 
  6.  
  7. // add the filter 
  8. add_filter( 'registration_redirect', 'filter_registration_redirect', 10, 1 ); 
To remove a hook callback, use the example below.
  1. // remove the filter 
  2. remove_filter( 'registration_redirect', 'filter_registration_redirect', 10, 1 ); 

Defined (1)

The filter is defined in the following location(s).

/wp-login.php  
  1. $redirect_to = apply_filters( 'registration_redirect', $registration_redirect );