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 |
---|---|
2278 | $user = (int) $user; |
2279 |
|
2280 | if ( is_user_admin() ) |
2281 | $url = user_admin_url( 'profile.php', $scheme ); |
2282 | elseif ( is_network_admin() ) |
2283 | $url = network_admin_url( 'profile.php', $scheme ); |
2284 | else |
2285 | $url = get_dashboard_url( $user, 'profile.php', $scheme ); |
2286 |
|
2287 | return apply_filters( 'edit_profile_url', $url, $user, $scheme); |
2288 | } |
2289 |
|
2290 | /** |
2291 | * Output rel=canonical for singular queries. |
2292 | * |
2293 | * @package WordPress |
2294 | * @since 2.9.0 |
2295 | */ |
2296 | function rel_canonical() { |