function get_edit_profile_url( $user, $scheme = 'admin' ) {}

Get the URL to the user’s profile editor.


  • int $user: User ID
  • string $scheme: The scheme to use. Default is ‘admin’, which obeys force_ssl_admin() and is_ssl(). ‘http’ or ‘https’ can be passed to force those schemes.

Return values

returns:Dashboard url link with optional path appended.

Defined filters

  • edit_profile_url
    apply_filters( 'edit_profile_url', $url, $user, $scheme)

Source code

function get_edit_profile_url( $user, $scheme = 'admin' ) {

	$user = (int) $user;

	if ( is_user_admin() )

		$url = user_admin_url( 'profile.php', $scheme );

	elseif ( is_network_admin() )

		$url = network_admin_url( 'profile.php', $scheme );


		$url = get_dashboard_url( $user, 'profile.php', $scheme );

	return apply_filters( 'edit_profile_url', $url, $user, $scheme);



No comments yet... Be the first to leave a reply!

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: