OCMLABS/MODULE-WORDPRESS · PLUGIN INSTALLATION

Install and activate the OCMLabs Content Bridge for Magento WordPress plugin

  • Magento
  • Adobe Commerce
  • Hyvä

The OCMLabs Content Bridge for Magento 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 OCMLabs WordPress Integration Magento module installed

Installation

Via WordPress Admin

  1. In WordPress Admin, go to Plugins > Add New
  2. Search for OCMLabs Content Bridge for Magento and click Install Now
  3. Click Activate

The plugin is listed on WordPress.org.

Manual Installation

  1. Download the plugin ZIP from WordPress.org and extract it
  2. Copy the ocmlabs-content-bridge-for-magento/ folder to wp-content/plugins/
  3. In WordPress Admin, go to Plugins and activate OCMLabs Content Bridge for Magento

Replacing the old OC Magento Bridge plugin

The plugin was previously distributed as OC Magento Bridge (oc-magento-bridge). The new plugin reads the same settings, so your API key and webhook settings carry over:

  1. Install and activate OCMLabs Content Bridge for Magento
  2. Deactivate OC Magento Bridge
  3. Remove the old wp-content/plugins/oc-magento-bridge/ folder from the server. Deleting it from Plugins in WordPress Admin also deletes the shared settings, including the API key, so you would have to copy a new key into Magento.

After Activation

On first activation, the plugin:

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

The API key is shown in Settings > OCMLabs Content Bridge for Magento. Copy it and paste it into the Magento module’s API Key field under Stores > Configuration > OCMLabs > 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 403 response means the API key is incorrect.

See also

Related pages

In this module