WooCommerce Code Reference

WC_Webhook_Data_Store_Interface

WooCommerce Webhook data store interface.

Table of Contents

get_api_version_number()  : int
Get API version number.
get_webhooks_ids()  : array<string|int, int>
Get all webhooks IDs.

Methods

get_webhooks_ids()

Get all webhooks IDs.

public get_webhooks_ids([string $status = '' ]) : array<string|int, int>
Parameters
$status : string = ''

Optional - status to filter results by. Must be a key in return value of @see wc_get_webhook_statuses(). @since 3.6.0.

Tags
since
3.2.0
throws
InvalidArgumentException

If a $status value is passed in that is not in the known wc_get_webhook_statuses() keys.

Return values
array<string|int, int>