Skip to content

WP Webhooks

The WP Webhooks modules enable you to receive data from other services to, for example, create a user or a post on your WordPress website, as well as it can send data for you for certain actions.

Getting Started with WP Webhooks

Prerequisites

In order to use WP Webhooks with Ibexa Connect, it is necessary to have a WP Webhooks Wordpress plugin installed and activated.

Note

The module dialog fields that are displayed in bold (in the Ibexa Connect scenario, not in this documentation article) are mandatory!

Connecting WP Webhooks to Ibexa Connect

Follow these steps to connect your WP Webhooks to Ibexa Connect:

  1. Log in to your Wordpress administration.

  2. Install and activate the WP Webhooks plugin.

    61d6cbdb449eb.png

  3. Go to Settings > WP Webhooks > Receive Data.

    wb-webhooks-1.gif

  4. Find here all information needed to establish a connection - Webhook URL, Webhook Name and Webhook API Key

    wb-webhooks-2.png

  5. Go to Ibexa Connect and open the WB Webhooks module's Create a connection dialog.

  6. Enter the values that you found in step 3 to the respective fields and click the Continue button to establish the connection.

The connection has been established and you can proceed to set up the module.

Webhook Action

Use this module to send data to your Wordpress.

Webhook Action Enter the name of the action you want to perform using the module.

You must activate desired actions first. It can be done under:

Settings > WP Webhooks > Settings:

wb-webhooks-3.gif
Arguments Enter the argument and value.

The list of arguments for each action can be found under:

Settings > WP Webhooks > Receive Data > Available Webhook Actions

wb-webhooks-4.gif

Example - Create a User:

Webhook Action

create_user

Arguments

Argument user_mail
Value email address of the new email

61d6cbddd3ec8.png