wpseek.com
Un motore di ricerca WordPress per sviluppatori e autori di temi



rest_url › WordPress Function

Da4.4.0
Deprecaton/a
rest_url ( $path = '', $scheme = 'rest' )
Parametri: (2)
  • (string) $path Optional. REST route. Default empty.
    Richiesto: No
    Default: (vuoto)
  • (string) $scheme Optional. Sanitization scheme. Default 'rest'.
    Richiesto: No
    Default: 'rest'
Ritorna:
  • (string) Full URL to the endpoint.
Definito a:
Codex:

Retrieves the URL to a REST endpoint.

Note: The returned URL is NOT escaped.


Sorgenti

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