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
- A WP Webhooks plugin installed
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:
-
Log in to your Wordpress administration.
-
Install and activate the WP Webhooks plugin.
-
Go to Settings > WP Webhooks > Receive Data.
-
Find here all information needed to establish a connection - Webhook URL, Webhook Name and Webhook API Key
-
Go to Ibexa Connect and open the WB Webhooks module's Create a connection dialog.
-
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: |
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 |
Example - Create a User:¶
Webhook Action
create_user
Arguments
Argument | user_mail |
Value | email address of the new email |