Orange Collar Media
Orange Collar Media
DOCS
ORANGECOLLAR/MODULE-WORDPRESS-INTEGRATION · PLUGIN INSTALLATION

Install and activate the OC Magento Bridge WordPress plugin

  • Magento
  • Adobe Commerce
  • Hyvä

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

  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

Manual Installation

  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

After Activation

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.

Verifying Installation

After activation, test that the REST endpoints are available:

TERMINAL
$ 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.