wpseek.com
Bazujące na WordPress narzędzie wyszukiwania dla deweloperów i twórców motywów.



rest_url › WordPress Function

Od4.4.0
Przestarzałyn/a
rest_url ( $path = '', $scheme = 'rest' )
Parametry: (2)
  • (string) $path Optional. REST route. Default empty.
    Wymagane: Nie
    Domyślny: (puste)
  • (string) $scheme Optional. Sanitization scheme. Default 'rest'.
    Wymagane: Nie
    Domyślny: 'rest'
Powrót:
  • (string) Full URL to the endpoint.
Zdefiniowane na:
Codex:

Retrieves the URL to a REST endpoint.

Note: The returned URL is NOT escaped.


Źródło

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