Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: get_edit_user_link

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
1070
1071      if ( ! $user )
1072           return '';
1073
1074      if ( get_current_user_id() == $user->ID )
1075           $link = get_edit_profile_url( $user->ID );
1076      else
1077           $link = add_query_arg( 'user_id', $user->ID, self_admin_url( 'user-edit.php' ) );
1078
1079      return apply_filters( 'get_edit_user_link', $link, $user->ID );
1080 }
1081
1082 // Navigation links
1083
1084 /**
1085  * Retrieve previous post that is adjacent to current post.
1086  *
1087  * @since 1.5.0
1088  *