woocommerce_webhook_topic filter-hook . WC 2.2.0
Get the webhook topic, e.g. order.created.
Usage
add_filter( 'woocommerce_webhook_topic', 'filter_function_name_7931', 10, 2 ); function filter_function_name_7931( $context, $id ){ // filter... return $context; }
- $context(string)
- What the value is for. Valid values are 'view' and 'edit'.
- $id
- -
Changelog
Since 2.2.0 | Introduced. |
Where the hook is called
woocommerce_webhook_topic
woocommerce/includes/class-wc-webhook.php 743
return apply_filters( 'woocommerce_webhook_topic', $this->get_prop( 'topic', $context ), $this->get_id() );