WooCommerce Code Reference

Search results

WC_Webhook_Data_Store_Interface

WooCommerce Webhook data store interface.

Table of Contents

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

Methods

get_api_version_number()

Get API version number.

public get_api_version_number( $api_version : string ) : int
Parameters
$api_version : string

REST API version.

Tags
since
Return values
int

get_webhooks_ids()

Get all webhooks IDs.

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

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

Return values
int[]
Back to the top