Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: register_post

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
2282       *
2283       * @since 2.1.0
2284       *
2285       * @param string   $sanitized_user_login The submitted username after being sanitized.
2286       * @param string   $user_email           The submitted email.
2287       * @param WP_Error $errors               Contains any errors with submitted username and email,
2288       *                                       e.g., an empty field, an invalid username or email,
2289       *                                       or an existing username or email.
2290       */
2291      do_action( 'register_post', $sanitized_user_login, $user_email, $errors );
2293      /**
2294       * Filters the errors encountered when a new user is being registered.
2295       *
2296       * The filtered WP_Error object may, for example, contain errors for an invalid
2297       * or existing username or email address. A WP_Error object should always returned,
2298       * but may or may not contain errors.
2299       *
2300       * If any errors are present in $errors, this will abort the user's registration.