Filter hook 'user_admin_url'

in WP Core File wp-includes/link-template.php at line 3853

Description

Filters the user admin URL for the current user.

Occurrences

Filename Line Number
wp-includes/link-template.php 3853

Parameters

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

PHP Doc

/**
	 * Filters the user admin URL for the current user.
	 *
	 * @since 3.1.0
	 * @since 5.8.0 The `$scheme` parameter was added.
	 *
	 * @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. Default is 'admin', which obeys force_ssl_admin() and is_ssl().
	 */