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 |
---|---|
2386 | $user = (int) $user; |
2387 |
|
2388 | if ( is_user_admin() ) |
2389 | $url = user_admin_url( 'profile.php', $scheme ); |
2390 | elseif ( is_network_admin() ) |
2391 | $url = network_admin_url( 'profile.php', $scheme ); |
2392 | else |
2393 | $url = get_dashboard_url( $user, 'profile.php', $scheme ); |
2394 |
|
2395 | return apply_filters( 'edit_profile_url', $url, $user, $scheme); |
2396 | } |
2397 |
|
2398 | /** |
2399 | * Output rel=canonical for singular queries. |
2400 | * |
2401 | * @package WordPress |
2402 | * @since 2.9.0 |
2403 | */ |
2404 | function rel_canonical() { |