Filter hook 'admin_url'

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

Description

Filters the admin area URL.

Occurrences

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

Parameters

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

PHP Doc

/**
	 * Filters the admin area URL.
	 *
	 * @since 2.8.0
	 * @since 5.8.0 The `$scheme` parameter was added.
	 *
	 * @param string      $url     The complete admin area URL including scheme and path.
	 * @param string      $path    Path relative to the admin area URL. Blank string if no path is specified.
	 * @param int|null    $blog_id Site ID, or null for the current site.
	 * @param string|null $scheme  The scheme to use. Accepts 'http', 'https',
	 *                             'admin', or null. Default 'admin', which obeys force_ssl_admin() and is_ssl().
	 */