WordPress at Your Fingertips
filter is not described

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_8008', 10, 2 );
function filter_function_name_8008( $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

WC_Webhook::get_topic()
woocommerce_webhook_topic
woocommerce/includes/class-wc-webhook.php 743
return apply_filters( 'woocommerce_webhook_topic', $this->get_prop( 'topic', $context ), $this->get_id() );

Where in WP core the hook is used WooCommerce

Usage not found.