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
.
View all references
return apply_filters( 'rest_url_prefix', 'wp-json' );
Changelog
Version | Description |
---|---|
4.4.0 | Introduced. |
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.