get_admin_url

get_admin_url ( $blog_id = null, $path = '', $scheme = 'admin' )

Parameters:
  • (int) $blog_id (optional) Blog ID. Defaults to current blog.
  • (string) $path Optional path relative to the admin url.
  • (string) $scheme The scheme to use. Default is 'admin', which obeys force_ssl_admin() and is_ssl(). 'http' or 'https' can be passed to force those schemes.
Returns:
  • (string) Admin url link with optional path appended.
Defined at:

Description

Retrieve the url to the admin area for a given site.

Related Functions

admin_url, self_admin_url, user_admin_url, network_admin_url, get_site_url

Top Google Results

User discussions

wpseek mobile