WordPress at Your Fingertips
function is not described

WC_Webhook::get_event() public WC 2.2.0

Get the event for the webhook, e.g. created.

{} It's a method of the class: WC_Webhook{}

Hooks from the method

Return

String.

Usage

$WC_Webhook = new WC_Webhook();
$WC_Webhook->get_event();

Changelog

Since 2.2.0 Introduced.

Code of WC_Webhook::get_event() WC 6.1.0

public function get_event() {
	$topic = explode( '.', $this->get_topic() );

	return apply_filters( 'woocommerce_webhook_event', isset( $topic[1] ) ? $topic[1] : '', $this->get_id() );
}