apply_filters( 'rest_url_prefix', string $prefix )
Filters the REST URL prefix.
Parameters
- $prefix
-
(string) URL prefix. Default 'wp-json'.
Source
File: wp-includes/rest-api.php
Changelog
Version | Description |
---|---|
4.4.0 | Introduced. |
© 2003–2021 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/rest_url_prefix