wphooks.info - rest_url_prefix

rest_url_prefix

(trunk - 5.1-alpha-44286)

The hook occurs in the following file:

wp-includes/rest-api.php:
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
 * @return string Prefix.
 */
function rest_get_url_prefix() {
	/**
	 * Filters the REST URL prefix.
	 *
	 * @since 4.4.0
	 *
	 * @param string $prefix URL prefix. Default 'wp-json'.
	 */
	return apply_filters( 'rest_url_prefix', 'wp-json' );
}

/**
 * Retrieves the URL to a REST endpoint on a site.
 *
 * Note: The returned URL is NOT escaped.
 *
 * @since 4.4.0
 *