• Resolved Meash

    (@meash)


    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 to rest_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?

    https://www.ads-software.com/plugins/json-rest-api/

Viewing 1 replies (of 1 total)
  • Thread Starter Meash

    (@meash)

    Turns out it’s a WPML issue: it has to be re-configured for each new blog apparently and thus, there’s no /dehttps://domain.com/wordpress/my-new-site/wp-json/ works.

Viewing 1 replies (of 1 total)
  • The topic ‘Rewrites on new network site’ is closed to new replies.