user_admin_url filter-hookWP 3.1.0

Filters the user admin URL for the current user.

Usage

add_filter( 'user_admin_url', 'wp_kama_user_admin_url_filter', 10, 3 );

/**
 * Function for `user_admin_url` filter-hook.
 * 
 * @param string      $url    The complete URL including scheme and path.
 * @param string      $path   Path relative to the URL. Blank string if no path is specified.
 * @param string|null $scheme The scheme to use. Accepts 'http', 'https', 'admin', or null.
 *
 * @return string
 */
function wp_kama_user_admin_url_filter( $url, $path, $scheme ){

	// filter...
	return $url;
}
$url(string)
The complete URL including scheme and path.
$path(string)
Path relative to the URL. Blank string if no path is specified.
$scheme(string|null)
The scheme to use. Accepts 'http', 'https', 'admin', or null.
Default: 'admin', which obeys force_ssl_admin() and is_ssl()

Changelog

Since 3.1.0 Introduced.
Since 5.8.0 The $scheme parameter was added.

Where the hook is called

user_admin_url()
user_admin_url
wp-includes/link-template.php 3852
return apply_filters( 'user_admin_url', $url, $path, $scheme );

Where the hook is used in WordPress

Usage not found.