WordPress Hooks Explorer

Listing all hooks extracted WordPress Core


Details about admin_url

Back to home

Files

Filename Hook Type Line Number PHP Doc
wp-includes/link-template.php apply_filters 3486 /**
* 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().
*/

Hook Parameters

Parameter 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',