edit_profile_url filter-hookWP 3.1.0

Filters the URL for a user's profile editor.

Usage

add_filter( 'edit_profile_url', 'wp_kama_edit_profile_url_filter', 10, 3 );

/**
 * Function for `edit_profile_url` filter-hook.
 * 
 * @param string $url     The complete URL including scheme and path.
 * @param int    $user_id The user ID.
 * @param string $scheme  Scheme to give the URL context. Accepts 'http', 'https', 'login', 'login_post', 'admin', 'relative' or null.
 *
 * @return string
 */
function wp_kama_edit_profile_url_filter( $url, $user_id, $scheme ){

	// filter...
	return $url;
}
$url(string)
The complete URL including scheme and path.
$user_id(int)
The user ID.
$scheme(string)
Scheme to give the URL context. Accepts 'http', 'https', 'login', 'login_post', 'admin', 'relative' or null.

Changelog

Since 3.1.0 Introduced.

Where the hook is called

get_edit_profile_url()
edit_profile_url
wp-includes/link-template.php 3898
return apply_filters( 'edit_profile_url', $url, $user_id, $scheme );

Where the hook is used in WordPress

Usage not found.