wpseek.com
A WordPress-centric search engine for devs and theme authors



rest_get_url_prefix › WordPress Function

Since4.4.0
Deprecatedn/a
rest_get_url_prefix ( No parameters )
Returns:
  • (string) Prefix.
Defined at:
Codex:

Retrieves the URL prefix for any API resource.



Source

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' );
}