WooCommerce Code Reference

WC_Webhook_Data_Store_Interface

Webhook Data Store Interface

Tags
version
3.2.0

Table of Contents

get_api_version_number()  : int
Get API version number.
get_webhooks_ids()  : int[]
Get all webhooks IDs.

Methods

get_webhooks_ids()

Get all webhooks IDs.

public get_webhooks_ids([string $status = '' ]) : 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
int[]