WordPress at Your Fingertips
function is not described

WC_Webhook::process() public WC 2.2.0

Process the webhook for delivery by verifying that it should be delivered. and scheduling the delivery (in the background by default, or immediately).

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

Hooks from the method

Return

Mixed. $arg Returns the argument in case the webhook was hooked into a filter.

Usage

$WC_Webhook = new WC_Webhook();
$WC_Webhook->process( $arg );
$arg(mixed) (required)
The first argument provided from the associated hooks.

Changelog

Since 2.2.0 Introduced.

Code of WC_Webhook::process() WC 5.9.0

public function process( $arg ) {

	// Verify that webhook should be processed for delivery.
	if ( ! $this->should_deliver( $arg ) ) {
		return;
	}

	// Mark this $arg as processed to ensure it doesn't get processed again within the current request.
	$this->processed[] = $arg;

	/**
	 * Process webhook delivery.
	 *
	 * @since 3.3.0
	 * @hooked wc_webhook_process_delivery - 10
	 */
	do_action( 'woocommerce_webhook_process_delivery', $this, $arg );

	return $arg;
}