Alert: This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.
WC_Webhook_Data_Store::validate_status( string $status )
Check if a given string is in known statuses, based on return value of @see wc_get_webhook_statuses().
Description Description
Parameters Parameters
- $status
-
(Required) Status to check.
Source Source
File: includes/data-stores/class-wc-webhook-data-store.php
private function validate_status( $status ) { if ( ! array_key_exists( $status, wc_get_webhook_statuses() ) ) { throw new InvalidArgumentException( sprintf( 'Invalid status given: %s. Status must be one of: %s.', $status, implode( ', ', array_keys( wc_get_webhook_statuses() ) ) ) ); } }
Changelog Changelog
Version | Description |
---|---|
3.6.0 | Introduced. |