Skip to content

WordPress Plugin Installation

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.

  • WordPress 6.0 or higher
  • PHP 8.1 or higher
  • The OrangeCollar WordPress Integration Magento module installed
  1. Download oc-magento-bridge.zip
  2. In WordPress Admin, go to Plugins > Add New > Upload Plugin
  3. Choose the ZIP file and click Install Now
  4. Click Activate Plugin
  1. Extract the plugin ZIP
  2. Copy the oc-magento-bridge/ folder to wp-content/plugins/
  3. In WordPress Admin, go to Plugins and activate OC Magento Bridge

On first activation, the plugin:

  1. Generates a random API key and stores it in WordPress options
  2. Registers all REST API routes under the oc-bridge/v1 namespace

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.

After activation, test that the REST endpoints are available:

Terminal window
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.