Documentation The WordPress API

The WordPress API

Overview #

Developers use the API to build external apps and integrate site content into a wide variety of external platforms.

↑ Top ↑

WordPress REST API #

All sites, including VIP sites, feature the REST API. This is the recommended API for all integrations and features methods for handling posts, users, categories, tags and much more. Authentication is handled using OAuth. A great way to begin exploring the REST API is to check out the developer console.

The VIP site theme loads for a REST API request on your sites data, which means custom post types, custom taxonomies, and custom user roles are there.

However, please note that the theme only loads on a single site endpoint: /sites/:site/*, and does not reach multi-site endpoints due to the way theme loading is implemented.

REST API specific filters, like rest_api_allowed_post_types are in effect. Please be careful of theme constants like STYLESHEETPATH and TEMPLATEPATH as they’re not available in the REST API context.

↑ Top ↑


All sites, including VIP sites, also have an XML-RPC endpoint enabled at /xmlrpc.php. Though it is required by certain legacy apps, we strongly urge the use of the REST API for all new development. Additional information on XML-PRC support is available here and here.

Note: XML-RPC requests that lack a user agent are blocked on

↑ Top ↑

Can REST or XML-RPC be disabled? #

No. These are enabled and secure for all sites, including VIP sites.