W3cubDocs

/WordPress

apply_filters( 'admin_url', string $url, string $path, int|null $blog_id )

Filters the admin area URL.

Parameters

$url

(string) The complete admin area URL including scheme and path.

$path

(string) Path relative to the admin area URL. Blank string if no path is specified.

$blog_id

(int|null) Site ID, or null for the current site.

Source

File: wp-includes/link-template.php

View on Trac

Changelog

Version Description
2.8.0 Introduced.

© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/admin_url