Wrong REST API path accessed on Multisite
-
My dev site is WordPress Multisite.
register_rest_route() correctly registers example.com/site-name/wp-json/find-my-blocks/blocks but the find-my-blocks.js script looks for /wp-json/find-my-blocks/blocksIf I access example.com/site-name/wp-json/find-my-blocks/blocks I see the returned JSON.
Could wp_localize_script be used to pass the site_url to the script?
I’m happy to help test any changes.
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘Wrong REST API path accessed on Multisite’ is closed to new replies.