Un motore di ricerca WordPress per sviluppatori e autori di temi



admin_url ›

Da2.6.0
Deprecaton/a
admin_url ( $path = '', $scheme = 'admin' )
Parametri: (2)
  • (string) $path Optional path relative to the admin URL.
    Richiesto: No
    Default: (vuoto)
  • (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.
    Richiesto: No
    Default: 'admin'
Ritorna:
  • (string) Admin URL link with optional path appended.
Definito a:
Codex:

Retrieves the URL to the admin area for the current site.



Sorgenti

function admin_url( $path = '', $scheme = 'admin' ) {
	return get_admin_url( null, $path, $scheme );
}