ORANGECOLLAR/MODULE-WORDPRESS-INTEGRATION · PLUGIN INSTALLATION
Install and activate the OC Magento Bridge WordPress plugin
The OC Magento Bridge plugin is the WordPress-side component of the integration. It exposes custom REST API endpoints and sends cache-purge webhooks to Magento.
Requirements
- WordPress 6.0 or higher
- PHP 8.1 or higher
- The OrangeCollar WordPress Integration Magento module installed
Installation
Via WordPress Admin
- Download
oc-magento-bridge.zip - In WordPress Admin, go to Plugins > Add New > Upload Plugin
- Choose the ZIP file and click Install Now
- Click Activate Plugin
Manual Installation
- Extract the plugin ZIP
- Copy the
oc-magento-bridge/folder towp-content/plugins/ - In WordPress Admin, go to Plugins and activate OC Magento Bridge
After Activation
On first activation, the plugin:
- Generates a random API key and stores it in WordPress options
- Registers all REST API routes under the
oc-bridge/v1namespace
The API key is shown in Settings > OC Magento Bridge. Copy it and paste it into the Magento module’s API Key field under Stores > Configuration > Orange Collar > WordPress Integration > Connection.
Verifying Installation
After activation, test that the REST endpoints are available:
$ curl -H "X-OC-Bridge-Key: your-api-key" \ $ https://your-wordpress-site.com/wp-json/oc-bridge/v1/options
A successful response returns a JSON object with site options. A 401 response means the API key is incorrect.