On this page
apply_filters( 'rest_url_prefix', string $prefix )
Filters the REST URL prefix.
Parameters
$prefixstring-
URL prefix. Default
'wp-json'.
Source
File: wp-includes/rest-api.php. View all references
return apply_filters( 'rest_url_prefix', 'wp-json' );
Related
Used By
| Used By | Description |
|---|---|
| rest_get_url_prefix() wp-includes/rest-api.php | Retrieves the URL prefix for any API resource. |
Changelog
| Version | Description |
|---|---|
| 4.4.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/rest_url_prefix