WC_Webhook_Data_Store::get_transient_key
Get the transient key used to cache a set of webhook IDs, optionally filtered by status.
Method of the class: WC_Webhook_Data_Store{}
No Hooks.
Returns
String.
Usage
// private - for code of main (parent) class only $result = $this->get_transient_key( $status );
- $status(string)
- Optional - status of cache key.
Default:''
Changelog
| Since 3.6.0 | Introduced. |
WC_Webhook_Data_Store::get_transient_key() WC Webhook Data Store::get transient key code WC 10.5.0
private function get_transient_key( $status = '' ) {
return empty( $status ) ? 'woocommerce_webhook_ids' : sprintf( 'woocommerce_webhook_ids_status_%s', $status );
}