wpseek.com
Outil de recherche WordPress pour les développeurs et auteurs de thèmes



admin_url › WordPress Function

Depuis2.6.0
Dépréciéen/a
admin_url ( $path = '', $scheme = 'admin' )
Paramètres: (2)
  • (string) $path Optional. Path relative to the admin URL. Default empty.
    Requis: Non
    Défaut: (vide)
  • (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.
    Requis: Non
    Défaut: 'admin'
Retourne:
  • (string) Admin URL link with optional path appended.
Défini(e) dans:
Codex:

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



Source

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