• In the get_rest_url() function, the function get_home_url() is used to build the rest api address, not get_site_url(). This makes it impossible to use wordpress as a CMS on one domain and displaying a fornt on another domain using API communication.

Viewing 1 replies (of 1 total)
  • Not impossible, since it does have a filter, but does it go through the rewrites if the home address is used? You might want to make a test case to explain it better.

    Why don’t you search for a ticket about this and if it is not there, you can write one?
    https://core.trac.wordpress.org/

Viewing 1 replies (of 1 total)
  • The topic ‘get_rest_url() is dependent on home_url’ is closed to new replies.