Uses
| Uses | Description |
|---|---|
| wp-includes/rest-api.php: rest_url_prefix | Filters the REST URL prefix. |
| wp-includes/plugin.php: apply_filters() | Calls the callback functions that have been added to a filter hook. |
Retrieves the URL prefix for any API resource.
(string) Prefix.
File: wp-includes/rest-api.php
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' );
} | Version | Description |
|---|---|
| 4.4.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/rest_get_url_prefix