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



rest_url › WordPress Function

Desde4.4.0
Obsoleton/a
rest_url ( $path = '', $scheme = 'rest' )
Parâmetros: (2)
  • (string) $path Optional. REST route. Default empty.
    Required: No
    Padrão: (empty)
  • (string) $scheme Optional. Sanitization scheme. Default 'rest'.
    Required: No
    Padrão: 'rest'
Retorna:
  • (string) Full URL to the endpoint.
Definido em:
Codex:

Retrieves the URL to a REST endpoint.

Note: The returned URL is NOT escaped.


Fonte

function rest_url( $path = '', $scheme = 'rest' ) {
	return get_rest_url( null, $path, $scheme );
}