On this page
apply_filters( 'admin_url', string $url, string $path, int|null $blog_id, string|null $scheme )
Filters the admin area URL.
Parameters
$urlstring-
The complete admin area URL including scheme and path.
$pathstring-
Path relative to the admin area URL. Blank string if no path is specified.
$blog_idint|null-
Site ID, or null for the current site.
$schemestring|null-
The scheme to use. Accepts
'http','https','admin', or null. Default'admin', which obeys force_ssl_admin() and is_ssl() .
Source
File: wp-includes/link-template.php. View all references
return apply_filters( 'admin_url', $url, $path, $blog_id, $scheme );
Related
Used By
| Used By | Description |
|---|---|
| get_admin_url() wp-includes/link-template.php | Retrieves the URL to the admin area for a given site. |
Changelog
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/admin_url