apply_filters( 'rest_url_prefix', string $prefix )
Filters the REST URL prefix.
Parameters Parameters
- $prefix
-
(string) URL prefix. Default 'wp-json'.
Source Source
File: wp-includes/rest-api.php
Changelog Changelog
Version | Description |
---|---|
4.4.0 | Introduced. |
User Contributed Notes User Contributed Notes
You must log in before being able to contribute a note or feedback.
Flushing rewrite rules is required for new prefix to work. Simplest method is to visit Settings/Permalinks in your admin panel & Save Changes with existing settings. It will refresh your permalinks.