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



rest_url › WordPress Function

Depuis4.4.0
Dépréciéen/a
rest_url ( $path = '', $scheme = 'rest' )
Paramètres: (2)
  • (string) $path Optional. REST route. Default empty.
    Requis: Non
    Défaut: (vide)
  • (string) $scheme Optional. Sanitization scheme. Default 'rest'.
    Requis: Non
    Défaut: 'rest'
Retourne:
  • (string) Full URL to the endpoint.
Défini(e) dans:
Codex:

Retrieves the URL to a REST endpoint.

Note: The returned URL is NOT escaped.


Source

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