Categories
URL / Rewrite Filter

How to get WordPress REST API to use SITE URL instead of HOME URL in Guttenberg editor

If you have a different SITE URL and HOME URL ( WordPress Address ), then, WordPress will use HOME URL for WordPress API. Here is an example: If your SITE URL is mywebsite.com but your HOME URL or WordPress Address ( URL ) is mywebsite.com/blog/, Then, your WordPress API URL will be mywebsite.com/blog/wp-json/wp/v2/. But you