registration_redirect filter-hookWP 3.0.0

Filters the registration redirect URL.

Usage

add_filter( 'registration_redirect', 'wp_kama_registration_redirect_filter', 10, 2 );

/**
 * Function for `registration_redirect` filter-hook.
 * 
 * @param string       $registration_redirect The redirect destination URL.
 * @param int|WP_Error $errors                User id if registration was successful, WP_Error object otherwise.
 *
 * @return string
 */
function wp_kama_registration_redirect_filter( $registration_redirect, $errors ){

	// filter...
	return $registration_redirect;
}
$registration_redirect(string)
The redirect destination URL.
$errors(int|WP_Error)
User id if registration was successful, WP_Error object otherwise.

Changelog

Since 3.0.0 Introduced.
Since 5.9.0 Added the $errors parameter.

Where the hook is called

In file: /wp-login.php
registration_redirect
wp-login.php 1141
$redirect_to = apply_filters( 'registration_redirect', $registration_redirect, $errors );

Where the hook is used in WordPress

Usage not found.