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::delete_transients( string $status = '' )
Delete the transients used to cache a set of webhook IDs, optionally filtered by status.
Description Description
Parameters Parameters
- $status
-
(Optional) - status of cache to delete, or 'all' to delete all caches.
Default value: ''
Source Source
File: includes/data-stores/class-wc-webhook-data-store.php
private function delete_transients( $status = '' ) { // Always delete the non-filtered cache. delete_transient( $this->get_transient_key( '' ) ); if ( ! empty( $status ) ) { if ( 'all' === $status ) { foreach ( wc_get_webhook_statuses() as $status_key => $status_string ) { delete_transient( $this->get_transient_key( $status_key ) ); } } else { delete_transient( $this->get_transient_key( $status ) ); } } }
Changelog Changelog
Version | Description |
---|---|
3.6.0 | Introduced. |