Rewrites on new network site
-
When adding a new site to my multisite-network, the
/wp-json/
rewrite doesn’t seem to happen, i.e.https://domain.com/wordpress/my-new-site/de/wp-json/
cannot be found (I’m using WPML along with the WP API, hence the/de
).https://domain.com/wordpress/my-new-site/de/?rest_route=/
works however.
In this new site, adding a function torest_api_init
has no effect (add_action('rest_api_init', 'my_function');
).How can I network activate WP API so that I can automatically query newly added sites on my network as well, along with individually added endpoints?
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Rewrites on new network site’ is closed to new replies.