wpseek.com
Uma área de pesquisa sobre o WordPress para devs e autores do tema



admin_url › WordPress Function

Desde2.6.0
Obsoleton/a
admin_url ( $path = '', $scheme = 'admin' )
Parâmetros: (2)
  • (string) $path Optional. Path relative to the admin URL. Default empty.
    Required: No
    Padrão: (empty)
  • (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.
    Required: No
    Padrão: 'admin'
Retorna:
  • (string) Admin URL link with optional path appended.
Definido em:
Codex:

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



Fonte

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