Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: edit_profile_url

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
2297      $user = (int) $user;
2298
2299      if ( is_user_admin() )
2300           $url = user_admin_url( 'profile.php', $scheme );
2301      elseif ( is_network_admin() )
2302           $url = network_admin_url( 'profile.php', $scheme );
2303      else
2304           $url = get_dashboard_url( $user, 'profile.php', $scheme );
2305
2306      return apply_filters( 'edit_profile_url', $url, $user, $scheme);
2307 }
2308
2309 /**
2310  * Output rel=canonical for singular queries.
2311  *
2312  * @package WordPress
2313  * @since 2.9.0
2314 */
2315 function rel_canonical() {