get_admin_url
get_admin_url ( $blog_id = null, $path = '', $scheme = 'admin' )
Parameters:- (int|null) blog_id Optional. Site ID. Default null (current site).
- (string) path Optional. Path relative to the admin URL. Default empty.
- (string) scheme Optional. The scheme to use. Accepts 'http' or 'https', to force those schemes. Default 'admin', which obeys force_ssl_admin() and is_ssl().
Returns:- (string) Admin URL link with optional path appended.
Defined at: - Introduced in WordPress: 3.0.0
- Deprecated in WordPress: —
Description
Retrieves the URL to the admin area for a given site.