I see WordPress.com recently started using Gutenberg, which relies on the WP REST API.
I'm building a plugin and I'd like to use the WP REST API from a self-hosted site, and have it communicate with a WordPress.com site, but I'm having trouble finding the REST API base URL.
For example, https://cmljnelson.wordpress.com/wp-json
is a 404. The documentation about REST API discovery doesn't seem to apply to WordPress.com.
How can I find the WP REST API base URL for WordPress.com sites?
相关问题
- Display product ACF field value in Woocommerce tra
- Adding a custom button after add to cart button in
- How to add a “active” class to a carousel first el
- Setting custom order statuses as valid for payment
- change the font size in tag cloud
相关文章
- wordpress新增页面如何个性化设置
- select query in wordpress
- Get WooCommerce featured products in a WP_Query
- Woocommerce update shipping methods in checkout vi
- Change order status just after payment in WooComme
- Publishing or uploading failed. Error message: “Th
- Facebook Login With WP JWT Auth
- Wordpress development process
WordPress.com's REST API apparently is shared among sites hosted there and you can access it here: https://public-api.wordpress.com/wp/v2/.
If you want access to the REST routes of a specific site in WordPress.com, use the
/sites
route:https://public-api.wordpress.com/wp/v2/sites/{site-id or domain}/
Further reading: