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:

Description

Retrieves the URL to the admin area for a given site.

Related Functions

admin_url, user_admin_url, self_admin_url, network_admin_url, get_site_url

Top Google Results

User discussions

wpseek mobile