Connect WooCommerce to WP Webhooks Formatter
Triggers & actions
Get started
Requirements
To use this connection, please make sure you are using the following plugins/services.
Documentation
Down below you will find further details on how to take advantage of the features offered by WP Webhooks so that you can get started in no time.
Possible scenarios
Integration summary
WooCommerce
WooCommerce is an open-source e-commerce plugin for WordPress. It is designed for small to large-sized online merchants using WordPress. While WooCommerce webhooks are, by default, limited, WP Webhooks aims to fill that gap.
WP Webhooks Formatter
WP Webhooks Formatter allows you to manipulate data in various ways using webhooks. You can, for example, find emails in text, replace values, do math and JSON operations, and much more.
Order created
This webhook fires as soon as an order was created within Woocommerce.
Customizations
Down below you will find a list of possible customizations you have available within our plugin. You can use them to fire the trigger only on certain criterias.
- Set user id
Set the numeric ID of a user that has permission to view the Woocommerce REST API. By default we try to locate the ID of the first admin user.
- Set API version
Select the Woocommerce API version you want to use for this request. By default, we use wp_api_v2
- Set secret
Set a custom secret that gets validated by Woocommerce, just as you know it from the default Woocommerce webhooks.
- Trigger on selected statuses
Select only the statuses you want to fire the trigger on. You can also choose multiple ones. If none is selected, all are triggered.
Text count characters
Count the total characters of a given text value.
Arguments
Down below you will find a list of all available arguments you can use for this specific endpoint. Each of those arguments can be set within the webhook request.
- value
The string we are going to count the characters of.
- ignore_chars
Set this value to yes to ignore white spaces, line breaks, and tabs.
- wpwh_call_action
(String) Register a custom WordPress hook callback. The value will be called as followed: do_action( $yourdefinedaction, $action_return_data, $request_data )
Coupon created
This webhook fires as soon as a coupon was created within Woocommerce.
Customizations
Down below you will find a list of possible customizations you have available within our plugin. You can use them to fire the trigger only on certain criterias.
- Set user id
Set the numeric ID of a user that has permission to view the Woocommerce REST API. By default we try to locate the ID of the first admin user.
- Set API version
Select the Woocommerce API version you want to use for this request. By default, we use wp_api_v2
- Set secret
Set a custom secret that gets validated by Woocommerce, just as you know it from the default Woocommerce webhooks.
Text letter case adjustments
Adjust the letter case of a string to capitalize it, set it to lower case, or set the first character to uppercase.
Arguments
Down below you will find a list of all available arguments you can use for this specific endpoint. Each of those arguments can be set within the webhook request.
- formatting_type
The type of adjustment.
- value
The string that will be adjusted.
- wpwh_call_action
(String) Register a custom WordPress hook callback. The value will be called as followed: do_action( $yourdefinedaction, $action_return_data, $request_data )
Coupon deleted
This webhook fires as soon as a coupon was deleted within Woocommerce.
Customizations
Down below you will find a list of possible customizations you have available within our plugin. You can use them to fire the trigger only on certain criterias.
- Set user id
Set the numeric ID of a user that has permission to view the Woocommerce REST API. By default we try to locate the ID of the first admin user.
- Set API version
Select the Woocommerce API version you want to use for this request. By default, we use wp_api_v2
- Set secret
Set a custom secret that gets validated by Woocommerce, just as you know it from the default Woocommerce webhooks.
Add coupon emails
Add one or multiple emails to a coupon within Woocommerce.
Arguments
Down below you will find a list of all available arguments you can use for this specific endpoint. Each of those arguments can be set within the webhook request.
- coupon_id
Set this argument to the id of the coupon.
- emails
Add the emails you want to add to the user. This argument accepts a comma-separated string, as well as a JSON construct.
- replace
Set this to yes to replace the existing emails. If set to no, the emails are appended to the existing ones. Default: no
- do_action
Advanced: Register a custom action after Webhooks Pro fires this webhook. More infos are in the description.
- wpwh_call_action
(String) Register a custom WordPress hook callback. The value will be called as followed: do_action( $yourdefinedaction, $action_return_data, $request_data )
Coupon restored
This webhook fires as soon as a coupon was restored within Woocommerce.
Customizations
Down below you will find a list of possible customizations you have available within our plugin. You can use them to fire the trigger only on certain criterias.
- Set user id
Set the numeric ID of a user that has permission to view the Woocommerce REST API. By default we try to locate the ID of the first admin user.
- Set API version
Select the Woocommerce API version you want to use for this request. By default, we use wp_api_v2
- Set secret
Set a custom secret that gets validated by Woocommerce, just as you know it from the default Woocommerce webhooks.
Add coupon user IDs
Add one or multiple emails via user IDs to a coupon within Woocommerce.
Arguments
Down below you will find a list of all available arguments you can use for this specific endpoint. Each of those arguments can be set within the webhook request.
- coupon_id
Set this argument to the id of the coupon.
- user_ids
Add the user_ids you want to add to the user. This argument accepts a comma-separated string, as well as a JSON construct.
- replace
Set this to yes to replace the existing user_ids. If set to no, the user_ids are appended to the existing ones. Default: no
- do_action
Advanced: Register a custom action after Webhooks Pro fires this webhook. More infos are in the description.
- wpwh_call_action
(String) Register a custom WordPress hook callback. The value will be called as followed: do_action( $yourdefinedaction, $action_return_data, $request_data )
Coupon updated
This webhook fires as soon as a coupon was updated within Woocommerce.
Customizations
Down below you will find a list of possible customizations you have available within our plugin. You can use them to fire the trigger only on certain criterias.
- Set user id
Set the numeric ID of a user that has permission to view the Woocommerce REST API. By default we try to locate the ID of the first admin user.
- Set API version
Select the Woocommerce API version you want to use for this request. By default, we use wp_api_v2
- Set secret
Set a custom secret that gets validated by Woocommerce, just as you know it from the default Woocommerce webhooks.
Create Woocommerce order
Create a Woocommerce order on your website using webhooks.
Arguments
Down below you will find a list of all available arguments you can use for this specific endpoint. Each of those arguments can be set within the webhook request.
- billing_address
The billing address of the order. Please see the description for more information.
- shipping_address
The shipping address of the order. Please see the description for more information.
- shipping_lines
This argument allows you to add certain shipping lines to your order. Please see the description for further details.
- add_products
The slist with the product ids and the quantity. More information within the description.
- calculate_totals
Set it to "yes" in case you want to calculate the order total. Default "no".
- payment_complete
Set it to "yes" in case you want to set the payment to complete. You can also set a transation id instead of "yes".
- legacy_set_total
Set the legacy total amount and type. More information within the description.
- order_meta
You can also set custom order meta. This meta will be saved as custom values within the post meta table. More information within the description.
- order_status
The order status you want to use for the order. Please check the description for more information.
- customer_id
The id or the email of the customer for the order.
- customer_note
Some text that will be displayed as the customer note.
- order_parent
The id of a parent order.
- created_via
In identifier where the order was created from. E.g. "wp-webhooks".
- cart_hash
A cart hash value.
- order_id
A custom order id (Please note that this value may NOT be the order id of the order you currently create).
- do_action
Advanced: Register a custom action after Webhooks Pro fires this webhook. More infos are in the description.
- wpwh_call_action
(String) Register a custom WordPress hook callback. The value will be called as followed: do_action( $yourdefinedaction, $action_return_data, $request_data )
Customer created
This webhook fires as soon as a customer was created within Woocommerce.
Customizations
Down below you will find a list of possible customizations you have available within our plugin. You can use them to fire the trigger only on certain criterias.
- Set user id
Set the numeric ID of a user that has permission to view the Woocommerce REST API. By default we try to locate the ID of the first admin user.
- Set API version
Select the Woocommerce API version you want to use for this request. By default, we use wp_api_v2
- Set secret
Set a custom secret that gets validated by Woocommerce, just as you know it from the default Woocommerce webhooks.
Create coupon
Create a coupon within Woocommerce.
Arguments
Down below you will find a list of all available arguments you can use for this specific endpoint. Each of those arguments can be set within the webhook request.
- coupon_code
The code that your customers can use during checkout.
- type
The coupon type.
- amount
The discount amount of the coupon code, based on the selected type.
- individual_use
Set this to yes if the coupon cannot be used in conjunction with other coupons. Default: no
- product_ids
Add IDs of products in case you want to apply the coupon code only to specific products. This argument accepts a comma-separated string, as well as a JSON construct.
- exclude_product_ids
Add IDs of products that you want to exclude from the coupon code. This argument accepts a comma-separated string, as well as a JSON construct.
- usage_limit
Set a number if you want to limit the coupon to be used a limited amount of times only. Default: 0 (unlimited)
- usage_limit_per_user
Set a number to define whether a user can use the coupon code multiple times. Default: 0 (unlimited)
- limit_usage_to_x_items
Define a maximum number of products this coupon can be applied to for each cart. Default: 0 (unlimited)
- usage_count
A number that shows how often the code has been already used.
- expiry_date
A date when the coupon code expires. Leave empty to never expire it.
- enable_free_shipping
Set this to yes to enable free shipping. Default: no
- product_category_ids
Add the category IDs you want to add to the coupon. This argument accepts a comma-separated string, as well as a JSON construct.
- exclude_product_category_ids
Add the category IDs you want to exclude to the coupon. This argument accepts a comma-separated string, as well as a JSON construct.
- exclude_sale_items
Set this to yes to prevent the coupon being applied to items on sale. Default: no
- minimum_amount
Set a minimum amount that need to be reached before the coupon can be applied.
- maximum_amount
Set a maximum amount of which the coupon can be applied to.
- coupon_emails
Add one or multiple emails to the coupon. Only the users with those emails can redeem the code. This argument accepts a comma-separated string, as well as a JSON construct.
- description
Add a coupon author. This field accepts a user id.
- replace
Set this to yes to replace the existing user_ids. If set to no, the user_ids are appended to the existing ones. Default: no
- do_action
Advanced: Register a custom action after Webhooks Pro fires this webhook. More infos are in the description.
- wpwh_call_action
(String) Register a custom WordPress hook callback. The value will be called as followed: do_action( $yourdefinedaction, $action_return_data, $request_data )
Customer deleted
This webhook fires as soon as a customer was deleted within Woocommerce.
Customizations
Down below you will find a list of possible customizations you have available within our plugin. You can use them to fire the trigger only on certain criterias.
- Set user id
Set the numeric ID of a user that has permission to view the Woocommerce REST API. By default we try to locate the ID of the first admin user.
- Set API version
Select the Woocommerce API version you want to use for this request. By default, we use wp_api_v2
- Set secret
Set a custom secret that gets validated by Woocommerce, just as you know it from the default Woocommerce webhooks.
Date add/subtract time
Add or subtract time from a date.
Arguments
Down below you will find a list of all available arguments you can use for this specific endpoint. Each of those arguments can be set within the webhook request.
- date
The date you would like to add/subtract time from.
- expression
Set the amount of time you would like to add or substract. Some examples: +4 hours, 1 month, +1 minute, -4 months, -2 hours (You can also combine them: +20 year +2 hours)
- to_format
The date format you would like to change the date to. By default, we set it to: Y-m-d H:i:s
- from_format
By default, we try to map the date format automatically. However, if you see the date format is wrongly interpreted, you can tell us the format here.
- wpwh_call_action
(String) Register a custom WordPress hook callback. The value will be called as followed: do_action( $yourdefinedaction, $action_return_data, $request_data )
Customer updated
This webhook fires as soon as a customer was updated within Woocommerce.
Customizations
Down below you will find a list of possible customizations you have available within our plugin. You can use them to fire the trigger only on certain criterias.
- Set user id
Set the numeric ID of a user that has permission to view the Woocommerce REST API. By default we try to locate the ID of the first admin user.
- Set API version
Select the Woocommerce API version you want to use for this request. By default, we use wp_api_v2
- Set secret
Set a custom secret that gets validated by Woocommerce, just as you know it from the default Woocommerce webhooks.
Date change format
Change the format of a given date and time.
Arguments
Down below you will find a list of all available arguments you can use for this specific endpoint. Each of those arguments can be set within the webhook request.
- date
The date you would like to change the format for.
- to_format
The date format you would like to change the date to. By default, we set it to: Y-m-d H:i:s. Set this to "timestamp" to return a Unix timestamp instead.
- from_format
By default, we try to map the date format automatically. However, if you see the date format is wrongly interpreted, you can tell us the format here. In case you are adding a unix timestamp, please set this value to: timestamp
- to_timezone
By default, we keep the time in the timezone you spefied the date for without altering it. When you provide a different, we will convert the time to it, considering it UTC if not otherwise specified. E.g. America/Los_Angeles
- from_timezone
The default timezone is UTC. If you specify a different timezone, we will consider the from_format from that timezone.
- wpwh_call_action
(String) Register a custom WordPress hook callback. The value will be called as followed: do_action( $yourdefinedaction, $action_return_data, $request_data )
Order deleted
This webhook fires as soon as an order was deleted within Woocommerce.
Customizations
Down below you will find a list of possible customizations you have available within our plugin. You can use them to fire the trigger only on certain criterias.
- Set user id
Set the numeric ID of a user that has permission to view the Woocommerce REST API. By default we try to locate the ID of the first admin user.
- Set API version
Select the Woocommerce API version you want to use for this request. By default, we use wp_api_v2
- Set secret
Set a custom secret that gets validated by Woocommerce, just as you know it from the default Woocommerce webhooks.
Lookup table
Create a lookup table to match a specific value to another one.
Arguments
Down below you will find a list of all available arguments you can use for this specific endpoint. Each of those arguments can be set within the webhook request.
- lookup_key
The key you want to match to any of the keys (values on the left) of the lookup table.
- lookup_table
The lookup table data. As a key, please add the key you want to lookup and on the right the value you want to match.
- lookup_fallback
A fallback value in case we could not match the lookup key to the lookup table data.
- wpwh_call_action
(String) Register a custom WordPress hook callback. The value will be called as followed: do_action( $yourdefinedaction, $action_return_data, $request_data )
Order restored
This webhook fires as soon as an order was restored within Woocommerce.
Customizations
Down below you will find a list of possible customizations you have available within our plugin. You can use them to fire the trigger only on certain criterias.
- Set user id
Set the numeric ID of a user that has permission to view the Woocommerce REST API. By default we try to locate the ID of the first admin user.
- Set API version
Select the Woocommerce API version you want to use for this request. By default, we use wp_api_v2
- Set secret
Set a custom secret that gets validated by Woocommerce, just as you know it from the default Woocommerce webhooks.
- Trigger on selected statuses
Select only the statuses you want to fire the trigger on. You can also choose multiple ones. If none is selected, all are triggered.
Number format
Format a number to a specific format.
Arguments
Down below you will find a list of all available arguments you can use for this specific endpoint. Each of those arguments can be set within the webhook request.
- number
The number you want to format. Accepts float and integer.
- decimals
The number of decimals you want to have available. Default is 2.
- decimal_separator
The type of separator used for decimals. Default: .
- thousands_separator
The type of separator used for thousands. Default: ,
- wpwh_call_action
(String) Register a custom WordPress hook callback. The value will be called as followed: do_action( $yourdefinedaction, $action_return_data, $request_data )
Order updated
This webhook fires as soon as an order was updated within Woocommerce.
Customizations
Down below you will find a list of possible customizations you have available within our plugin. You can use them to fire the trigger only on certain criterias.
- Set user id
Set the numeric ID of a user that has permission to view the Woocommerce REST API. By default we try to locate the ID of the first admin user.
- Set API version
Select the Woocommerce API version you want to use for this request. By default, we use wp_api_v2
- Set secret
Set a custom secret that gets validated by Woocommerce, just as you know it from the default Woocommerce webhooks.
- Trigger on selected statuses
Select only the statuses you want to fire the trigger on. You can also choose multiple ones. If none is selected, all are triggered.
Number math operation
Perform a math operation on various numbers.
Arguments
Down below you will find a list of all available arguments you can use for this specific endpoint. Each of those arguments can be set within the webhook request.
- numbers
A comma-separated string of numbers for your math operation.
- operator
The math operator you would like to use.
- wpwh_call_action
(String) Register a custom WordPress hook callback. The value will be called as followed: do_action( $yourdefinedaction, $action_return_data, $request_data )
Product added to cart
This webhook fires as soon as a product was added to the cart within Woocommerce.
Customizations
Down below you will find a list of possible customizations you have available within our plugin. You can use them to fire the trigger only on certain criterias.
- Trigger on selected products
Select only the products you want to fire the trigger on. If none is selected, all are triggered.
Text JSON construct
Convert a JSON formatted string to an acessible JSON construct.
Arguments
Down below you will find a list of all available arguments you can use for this specific endpoint. Each of those arguments can be set within the webhook request.
- json
The JSON formatted string.
- wpwh_call_action
(String) Register a custom WordPress hook callback. The value will be called as followed: do_action( $yourdefinedaction, $action_return_data, $request_data )
Product created
This webhook fires as soon as a product was created within Woocommerce.
Customizations
Down below you will find a list of possible customizations you have available within our plugin. You can use them to fire the trigger only on certain criterias.
- Set user id
Set the numeric ID of a user that has permission to view the Woocommerce REST API. By default we try to locate the ID of the first admin user.
- Set API version
Select the Woocommerce API version you want to use for this request. By default, we use wp_api_v2
- Set secret
Set a custom secret that gets validated by Woocommerce, just as you know it from the default Woocommerce webhooks.
Text JSON implode
Implode the first level of a JSON string construct to a character-separated string using your preferred separator.
Arguments
Down below you will find a list of all available arguments you can use for this specific endpoint. Each of those arguments can be set within the webhook request.
- value
The JSON string that should be turned into a character-separated string.
- separator
The separator that is used to separate the values of the first level of the JSON. By default, we separate the values using a comma.
- wpwh_call_action
(String) Register a custom WordPress hook callback. The value will be called as followed: do_action( $yourdefinedaction, $action_return_data, $request_data )
Product deleted
This webhook fires as soon as a product was deleted within Woocommerce.
Customizations
Down below you will find a list of possible customizations you have available within our plugin. You can use them to fire the trigger only on certain criterias.
- Set user id
Set the numeric ID of a user that has permission to view the Woocommerce REST API. By default we try to locate the ID of the first admin user.
- Set API version
Select the Woocommerce API version you want to use for this request. By default, we use wp_api_v2
- Set secret
Set a custom secret that gets validated by Woocommerce, just as you know it from the default Woocommerce webhooks.
Text JSON serialize
Serialize a JSON formatted string based on its structure.
Arguments
Down below you will find a list of all available arguments you can use for this specific endpoint. Each of those arguments can be set within the webhook request.
- value
The JSON formatted string.
- wpwh_call_action
(String) Register a custom WordPress hook callback. The value will be called as followed: do_action( $yourdefinedaction, $action_return_data, $request_data )
Product restored
This webhook fires as soon as a product was restored within Woocommerce.
Customizations
Down below you will find a list of possible customizations you have available within our plugin. You can use them to fire the trigger only on certain criterias.
- Set user id
Set the numeric ID of a user that has permission to view the Woocommerce REST API. By default we try to locate the ID of the first admin user.
- Set API version
Select the Woocommerce API version you want to use for this request. By default, we use wp_api_v2
- Set secret
Set a custom secret that gets validated by Woocommerce, just as you know it from the default Woocommerce webhooks.
Text URL-decode
URL-decode a given text to make it compatible with URL query parameters.
Arguments
Down below you will find a list of all available arguments you can use for this specific endpoint. Each of those arguments can be set within the webhook request.
- value
The string we are going to URL-decode.
- convert_plus
By default, we keep the + character instead of turning it into a space. Set this to "yes" to change it to a space too.
- wpwh_call_action
(String) Register a custom WordPress hook callback. The value will be called as followed: do_action( $yourdefinedaction, $action_return_data, $request_data )
Product review approved
This webhook fires as soon as a product has been approved within Woocommerce.
Customizations
Down below you will find a list of possible customizations you have available within our plugin. You can use them to fire the trigger only on certain criterias.
- Trigger on selected products
Select only the products you want to fire the trigger on. If none is selected, all are triggered.
Text URL-encode
URL-encode a given text to make it compatible with URL query parameters.
Arguments
Down below you will find a list of all available arguments you can use for this specific endpoint. Each of those arguments can be set within the webhook request.
- value
The string we are going to URL-encode.
- convert_spaces
By default, we convert spaces to instead of +. Set this to "yes" to change that.
- wpwh_call_action
(String) Register a custom WordPress hook callback. The value will be called as followed: do_action( $yourdefinedaction, $action_return_data, $request_data )
Product updated
This webhook fires as soon as a product was updated within Woocommerce.
Customizations
Down below you will find a list of possible customizations you have available within our plugin. You can use them to fire the trigger only on certain criterias.
- Set user id
Set the numeric ID of a user that has permission to view the Woocommerce REST API. By default we try to locate the ID of the first admin user.
- Set API version
Select the Woocommerce API version you want to use for this request. By default, we use wp_api_v2
- Set secret
Set a custom secret that gets validated by Woocommerce, just as you know it from the default Woocommerce webhooks.
Text count words
Count the total words of a given text value.
Arguments
Down below you will find a list of all available arguments you can use for this specific endpoint. Each of those arguments can be set within the webhook request.
- value
The string we are going to count the words of.
- wpwh_call_action
(String) Register a custom WordPress hook callback. The value will be called as followed: do_action( $yourdefinedaction, $action_return_data, $request_data )
Product viewed
This webhook fires as soon as a product was viewed within Woocommerce.
Customizations
Down below you will find a list of possible customizations you have available within our plugin. You can use them to fire the trigger only on certain criterias.
- Trigger on selected products
Select only the products you want to fire the trigger on. If none is selected, all are triggered.
Text default value
Set a default value in case the given value is empty or has one of the following data: false, no, 0
Arguments
Down below you will find a list of all available arguments you can use for this specific endpoint. Each of those arguments can be set within the webhook request.
- value
The value to check against if it is empty.
- default_value
The default value in case the Current value was empty. A value is considered empy if nothing was sent through, or one of the following values was given: false, 0, no.
- wpwh_call_action
(String) Register a custom WordPress hook callback. The value will be called as followed: do_action( $yourdefinedaction, $action_return_data, $request_data )
User password updated
This webhook fires after a user password is updated within a WooCommerce account page.
Text explode JSON
Explode a character-separated string to a JSON construct.
Arguments
Down below you will find a list of all available arguments you can use for this specific endpoint. Each of those arguments can be set within the webhook request.
- value
The character-separated string you want to turn into a JSON construct.
- separator
The separator that is used to separate the values used for the JSON construct. By default, we separate the values using a comma.
- wpwh_call_action
(String) Register a custom WordPress hook callback. The value will be called as followed: do_action( $yourdefinedaction, $action_return_data, $request_data )
Text extract URL
Extract one or multiple URLs from a text value.
Arguments
Down below you will find a list of all available arguments you can use for this specific endpoint. Each of those arguments can be set within the webhook request.
- value
The string we are going to extract the URLs from.
- return_all
Define whether to extract only the first, or all URLs.
- wpwh_call_action
(String) Register a custom WordPress hook callback. The value will be called as followed: do_action( $yourdefinedaction, $action_return_data, $request_data )
Text extract email
Extract one or multiple emails from a text value.
Arguments
Down below you will find a list of all available arguments you can use for this specific endpoint. Each of those arguments can be set within the webhook request.
- value
The string we are going to extract the emails from.
- return_all
Define whether to extract only the first, or all email addresses.
- wpwh_call_action
(String) Register a custom WordPress hook callback. The value will be called as followed: do_action( $yourdefinedaction, $action_return_data, $request_data )
Text extract number
Extract one or multiple numbers from a text value.
Arguments
Down below you will find a list of all available arguments you can use for this specific endpoint. Each of those arguments can be set within the webhook request.
- value
The string we are going to extract the numbers from.
- return_all
Define whether to extract only the first, or all numbers.
- decimal_separator
Define the decimal separator of your given number.
- wpwh_call_action
(String) Register a custom WordPress hook callback. The value will be called as followed: do_action( $yourdefinedaction, $action_return_data, $request_data )
Text find and replace
Find and replace text wihtin a given text value.
Arguments
Down below you will find a list of all available arguments you can use for this specific endpoint. Each of those arguments can be set within the webhook request.
- value
The string we are going to remove the HTML from.
- find
The text we are going to look for within the value argument.
- replace
The text we are using to replace the value of the find argument. Leave empty to remove Find.
- wpwh_call_action
(String) Register a custom WordPress hook callback. The value will be called as followed: do_action( $yourdefinedaction, $action_return_data, $request_data )
Text match expression
Match a regular expression to a text value.
Arguments
Down below you will find a list of all available arguments you can use for this specific endpoint. Each of those arguments can be set within the webhook request.
- value
The string we are going to extract the numbers from.
- expression
The regular expression (PHP) you want to use to extract the data for.
- return_all
Define whether to extract only the first, or all matches.
- wpwh_call_action
(String) Register a custom WordPress hook callback. The value will be called as followed: do_action( $yourdefinedaction, $action_return_data, $request_data )
Text remove HTML
Remove HTML from a given text value.
Arguments
Down below you will find a list of all available arguments you can use for this specific endpoint. Each of those arguments can be set within the webhook request.
- value
The string we are going to remove the HTML from.
- wpwh_call_action
(String) Register a custom WordPress hook callback. The value will be called as followed: do_action( $yourdefinedaction, $action_return_data, $request_data )
Text to MD5 hash
Convert a text string to a MD5 hash.
Arguments
Down below you will find a list of all available arguments you can use for this specific endpoint. Each of those arguments can be set within the webhook request.
- value
The string that is going to be MD5 hashed.
- wpwh_call_action
(String) Register a custom WordPress hook callback. The value will be called as followed: do_action( $yourdefinedaction, $action_return_data, $request_data )
Text trim character
Trim one or multiple characters from the beginning and the end of a string.
Arguments
Down below you will find a list of all available arguments you can use for this specific endpoint. Each of those arguments can be set within the webhook request.
- value
The string that is going to be trimmed.
- characters
A sequence of characters that should be trimmed from the string. By default, we trim whitespaces. If you se this argument to xx, we would trim xx from the beginning and the end.
- wpwh_call_action
(String) Register a custom WordPress hook callback. The value will be called as followed: do_action( $yourdefinedaction, $action_return_data, $request_data )
Text truncate
Truncate a given text to a specific length only.
Arguments
Down below you will find a list of all available arguments you can use for this specific endpoint. Each of those arguments can be set within the webhook request.
- value
The string we are going to remove the HTML from.
- length
The max length of the string allowed. You can also use negative numbers to truncate the string from the end.
- offset
The offset of the string. You can also use negative numbers to truncate the string from the end.
- wpwh_call_action
(String) Register a custom WordPress hook callback. The value will be called as followed: do_action( $yourdefinedaction, $action_return_data, $request_data )
Text unserialize
Unserialize a serialized data string into an accessible format.
Arguments
Down below you will find a list of all available arguments you can use for this specific endpoint. Each of those arguments can be set within the webhook request.
- value
The serialized string.
- wpwh_call_action
(String) Register a custom WordPress hook callback. The value will be called as followed: do_action( $yourdefinedaction, $action_return_data, $request_data )
Woocommerce API call
The full power of the woocommerce API, packed within a webhook.
Arguments
Down below you will find a list of all available arguments you can use for this specific endpoint. Each of those arguments can be set within the webhook request.
- consumer_key
Your API consumer key. Please see the description for more information.
- consumer_secret
Your API consumer secret. Please see the description for more information.
- api_base
The action you want to use. E.g. products/1234 - Please see the description for more information.
- api_method
The method of the api call. E.g. get - Please see the description for more information.
- api_data
Additional data you want to send to the api call. Please see the description for more information.
- api_options
Extra arguments. Please see the description for more information.
- do_action
Advanced: Register a custom action after Webhooks Pro fires this webhook. More infos are in the description.
- wpwh_call_action
(String) Register a custom WordPress hook callback. The value will be called as followed: do_action( $yourdefinedaction, $action_return_data, $request_data )