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