petenelson / wp-rest-api-toolbox

WordPress plugin to tweak the REST API settings
https://wordpress.org/plugins/rest-api-toolbox/
45 stars 7 forks source link

Admin settings: Change base URL of the API #3

Closed petenelson closed 8 years ago

AymanEG commented 7 years ago

Hello there ,

Your tool is awesome. I tried to take the class of this feature (renaming wp-json) and adding it to my custom plugin ,but it does not change anything

Can you list complete function with hooks to change it ?!

regards Ayman

petenelson commented 7 years ago

You can use the rest_url_prefix hook to change the prefix. https://developer.wordpress.org/reference/hooks/rest_url_prefix/