Warning: This method has been deprecated. Webhooks deliveries logs now uses logging system instead.

WC_API_Webhooks::get_webhook_deliveries( string $webhook_id, string|null $fields = null )

Get deliveries for a webhook


Description Description


Parameters Parameters

$webhook_id

(Required) webhook ID

$fields

(Optional) fields to include in response

Default value: null


Top ↑

Return Return

(array|WP_Error)


Top ↑

Source Source

File: includes/legacy/api/v2/class-wc-api-webhooks.php

	public function get_webhook_deliveries( $webhook_id, $fields = null ) {

		// Ensure ID is valid webhook ID
		$webhook_id = $this->validate_request( $webhook_id, 'shop_webhook', 'read' );

		if ( is_wp_error( $webhook_id ) ) {
			return $webhook_id;
		}

		return array( 'webhook_deliveries' => array() );
	}

Top ↑

Changelog Changelog

Changelog
Version Description
3.3.0 Webhooks deliveries logs now uses logging system.
2.2 Introduced.


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.