WP hooks navigation: Home/browse • Actions index • Filters index
To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).
The best way to understand what a hook does is to look at where it occurs in the source code.
do_action( "hook_name" )apply_filters( "hook_name", "what_to_filter" ).Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.
| Line | Code |
|---|---|
| 1076 | |
| 1077 | if ( ! $user ) |
| 1078 | return ''; |
| 1079 | |
| 1080 | if ( get_current_user_id() == $user->ID ) |
| 1081 | $link = get_edit_profile_url( $user->ID ); |
| 1082 | else |
| 1083 | $link = add_query_arg( 'user_id', $user->ID, self_admin_url( 'user-edit.php' ) ); |
| 1084 | |
| 1085 | return apply_filters( 'get_edit_user_link', $link, $user->ID ); |
| 1086 | } |
| 1087 | |
| 1088 | // Navigation links |
| 1089 | |
| 1090 | /** |
| 1091 | * Retrieve previous post that is adjacent to current post. |
| 1092 | * |
| 1093 | * @since 1.5.0 |
| 1094 | * |