Content Bridge for Commerce - Complete Description
Category: WordPress Plugins • Platform: PHP
Content Bridge for Commerce provides a lightweight REST API endpoint that allows external commerce platforms such as Shopify to fetch WordPress editorial content.
This plugin does not sync databases or duplicate content. It simply exposes your WordPress posts through a clean, structured JSON API designed for external consumption.
Key Features
- Fetch latest WordPress posts via REST API
- Filter posts by category or tag (using slug)
- Return featured image, excerpt, and publish date
- Optional conversion of Jetpack (i0.wp.com) CDN image URLs back to original URLs
- Configurable default post count and limits
- Built-in transient cache (5 minutes) to reduce database load
- No data duplication or migration required
REST API Endpoint
Base endpoint:
/wp-json/content-bridge/v1/posts
Examples:
Latest posts:
/wp-json/content-bridge/v1/posts?per_page=4
Posts filtered by tag:
/wp-json/content-bridge/v1/posts?tax=post_tag&term=guidi&per_page=4
Posts filtered by category:
/wp-json/content-bridge/v1/posts?tax=category&term=news&per_page=4
If no taxonomy is specified, the API returns the latest posts from all published posts.
Authentication
This plugin protects its REST API using a simple API key mechanism.
Requests must include a valid API key via the following HTTP header:
X-Content-Bridge-Key: YOUR_API_KEY
If the API key is missing or invalid, the endpoint will return a 401 Unauthorized response.
The API key can be configured in the plugin settings screen.
The API key can be manually set or generated from the plugin settings screen.
Settings
Settings Content Bridge for Commerce
- Default number of posts
- Maximum allowed posts per request
- Image size (thumbnail / medium / large / full)
- Excerpt length (word count)
- Enable or disable Jetpack CDN URL unwrapping
Privacy
Content Bridge for Commerce does not collect, store, or transmit any personal data.
The plugin only exposes publicly available WordPress post data (such as title, excerpt, featured image, and permalink) via a REST API endpoint.
No data is sent to external servers by this plugin.