Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: registration_redirect

To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).

Understanding Source Code

The best way to understand what a hook does is to look at where it occurs in the source code.

Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.

Source View

Line Code
1059            * Filters the registration redirect URL.
1060            *
1061            * @since 3.0.0
1062            * @since 5.9.0 Added the `$errors` parameter.
1063            *
1064            * @param string       $registration_redirect The redirect destination URL.
1065            * @param int|WP_Error $errors                User id if registration was successful,
1066            *                                            WP_Error object otherwise.
1067            */
1068           $redirect_to = apply_filters( 'registration_redirect', $registration_redirect, $errors );
1069
1070           login_header( __( 'Registration Form' ), '<p class="message register">' . __( 'Register For This Site' ) . '</p>', $errors );
1071
1072           ?>
1073           <form name="registerform" id="registerform" action="<?php echo esc_url( site_url( 'wp-login.php?action=register', 'login_post' ) ); ?>" method="post" novalidate="novalidate">
1074                <p>
1075                     <label for="user_login"><?php _e( 'Username' ); ?></label>
1076                     <input type="text" name="user_login" id="user_login" class="input" value="<?php echo esc_attr( wp_unslash( $user_login ) ); ?>" size="20" autocapitalize="off" autocomplete="username" />
1077                </p>