Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: profile_update

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
2085      if ( $update ) {
2086           /**
2087            * Fires immediately after an existing user is updated.
2088            *
2089            * @since 2.0.0
2090            *
2091            * @param int    $user_id       User ID.
2092            * @param object $old_user_data Object containing user's data prior to update.
2093            */
2094           do_action( 'profile_update', $user_id, $old_user_data );
2095      } else {
2096           /**
2097            * Fires immediately after a new user is registered.
2098            *
2099            * @since 1.5.0
2100            *
2101            * @param int $user_id User ID.
2102            */
2103           do_action( 'user_register', $user_id );