admin_url() – Retrieves the URL to the admin area for the current site.
You appear to be a bot. Output may be restricted
Description
Retrieves the URL to the admin area for the current site.
Usage
$string = admin_url( $path, $scheme );
Parameters
- $path
- ( string ) optional – Optional. Path relative to the admin URL. Default empty.
- $scheme
- ( string ) optional default: admin – 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.
Source
File name: wordpress/wp-includes/link-template.php
Lines:
1 to 3 of 3
function admin_url( $path = '', $scheme = 'admin' ) { return get_admin_url( null, $path, $scheme ); }