rest_get_url_prefix()

Retrieves the URL prefix for any API resource.


Return

(string) Prefix.


Source

File: wp-includes/rest-api.php

function rest_get_url_prefix() {
	/**
	 * Filters the REST URL prefix.
	 *
	 * @since WP-4.4.0
	 *
	 * @param string $prefix URL prefix. Default 'wp-json'.
	 */
	return apply_filters( 'rest_url_prefix', 'wp-json' );
}


Changelog

Changelog
Version Description
WP-4.4.0 Introduced.