WP API Bridge
WP API Bridge is a plugin that exposes a set of REST API endpoints to allow external frontend applications (such as React, Vue, Angular, static site generators, or mobile apps) to consume WordPress content. It provides access to WordPress data and enables headless setups.
Install
This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.
Install straight from GitHub with WP-CLI:
wp plugin install https://github.com/temikeezy/wp-api-bridge/archive/refs/heads/main.zipDescription
WP API Bridge is a WordPress plugin that exposes a set of REST API endpoints, allowing external frontend applications (such as React, Vue, Angular, static site generators, or mobile apps) to consume WordPress content.
This plugin is ideal for headless WordPress setups, where WordPress serves purely as a backend content management system (CMS), while the frontend is powered by modern JavaScript frameworks or mobile applications.
Features
- Exposes WordPress content via REST API:
- Posts
- Pages
- Custom Post Types (CPTs)
- Taxonomies
- Menus
- Caching for faster API responses and better performance
- Supports Advanced Custom Fields (ACF) data
- Supports Yoast SEO metadata
- Multilingual content support via WPML and Polylang
Installation
-
Upload the plugin to your WordPress site:
wp-content/plugins/wp-api-bridge/ -
Activate the plugin from your WordPress admin dashboard.
-
The following REST API endpoints will become available:
| Endpoint | Description |
|---|---|
/wp-json/wp-api-bridge/v1/posts |
Get all posts |
/wp-json/wp-api-bridge/v1/post/{slug} |
Get a single post by slug |
/wp-json/wp-api-bridge/v1/pages |
Get all pages |
/wp-json/wp-api-bridge/v1/page/{slug} |
Get a single page by slug |
/wp-json/wp-api-bridge/v1/cpt/{custom_post_type} |
Get entries for a custom post type |
/wp-json/wp-api-bridge/v1/taxonomies |
Get all taxonomies |
/wp-json/wp-api-bridge/v1/menus |
Get registered menus |
Changelog
1.0
- Initial release.
- Exposes REST API endpoints for posts, pages, custom post types, taxonomies, and menus.
- Caching support for improved performance.
- ACF and Yoast SEO metadata support.
- Multilingual support with WPML and Polylang.
License
GPLv2 or later. See LICENSE for details.