Closed supagu closed 1 year ago
I've gone into word press to set my Permalinks as "Post name" and I'm trying to find the URL where wp-json might be accessible.
I have admin available here: http://localhost.dev/wp/wp-admin So I would expect wp-json to be here: http://localhost.dev/wp/wp-json
I have also unsuccessfully tried: http://localhost.dev/wp-json
I'm just using composer.json file from here: https://wecodemore.github.io/wpstarter/docs/complete-example.html
I would expect wp-json to be accessible somehow
MacOS
The JSON should be available at http://localhost.dev/wp-json, but it depends on your WP_HOME constant. Try to print the result of get_rest_url(), that's the URL WP expects you to call.
http://localhost.dev/wp-json
WP_HOME
get_rest_url()
Describe the bug
I've gone into word press to set my Permalinks as "Post name" and I'm trying to find the URL where wp-json might be accessible.
I have admin available here: http://localhost.dev/wp/wp-admin So I would expect wp-json to be here: http://localhost.dev/wp/wp-json
I have also unsuccessfully tried: http://localhost.dev/wp-json
To Reproduce
I'm just using composer.json file from here: https://wecodemore.github.io/wpstarter/docs/complete-example.html
Expected behavior
I would expect wp-json to be accessible somehow
System (please complete the following information):
MacOS