Advertisements

get_edit_profile_url

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

Get the URL to the user’s profile editor.

Parameters

  • 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 );

	else

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



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

}

9473

Advertisements

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:

WordPress.com Logo

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

Google+ photo

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

Twitter picture

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

Facebook photo

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

Connecting to %s

%d bloggers like this: