Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plugin doesn't honour WP_SITEURL #116

Open
klaus-aunds opened this issue Sep 7, 2022 · 2 comments
Open

Plugin doesn't honour WP_SITEURL #116

klaus-aunds opened this issue Sep 7, 2022 · 2 comments
Labels
bug Something isn't working

Comments

@klaus-aunds
Copy link

My WP_SITEURL is set to a different value than WP_HOME. The plugin uses the WP_HOME value for the REST API, which fails because the WP backend is located at WP_SITEURL.

A workaround for this issue is to enable the REST API compatibility mode, but it'd be great to get it working properly.

https://developer.wordpress.org/reference/functions/home_url/
https://developer.wordpress.org/reference/functions/site_url/

Thanks a ton for the great plugin. If I can be of any help please let me know.

@joppuyo
Copy link
Owner

joppuyo commented Sep 7, 2022

Can you give your WP_SITEURL and WP_HOME values? You can replace the domain with example.org if you don’t want to share it.

The plugin uses standard get_rest_url function to fetch the REST API URL. It should be possible to change this using rest_url filter.

@joppuyo joppuyo added the bug Something isn't working label Sep 7, 2022
@klaus-aunds
Copy link
Author

An example in my case would be

example.org -> WP_HOME
backend.example.org -> WP_SITEURL

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants