Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: edit_user_created_user

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
232           /**
233            * Fires after a new user has been created.
234            *
235            * @since 4.4.0
236            *
237            * @param int|WP_Error $user_id ID of the newly created user or WP_Error on failure.
238            * @param string       $notify  Type of notification that should happen. See
239            *                              wp_send_new_user_notifications() for more information.
240            */
241           do_action( 'edit_user_created_user', $user_id, $notify );
242      }
243      return $user_id;
244 }
245
246 /**
247  * Fetch a filtered list of user roles that the current user is
248  * allowed to edit.
249  *
250  * Simple function whose main purpose is to allow filtering of the