WC_Webhook_Data_Store::get_transient_key()
Get the transient key used to cache a set of webhook IDs, optionally filtered by status.
Метод класса: WC_Webhook_Data_Store{}
Хуков нет.
Возвращает
Строку
.
Использование
// private - только в коде основоного (родительского) класса $result = $this->get_transient_key( $status );
- $status(строка)
- Optional - status of cache key.
По умолчанию: ''
Список изменений
С версии 3.6.0 | Введена. |
Код WC_Webhook_Data_Store::get_transient_key() WC Webhook Data Store::get transient key WC 9.8.2
private function get_transient_key( $status = '' ) { return empty( $status ) ? 'woocommerce_webhook_ids' : sprintf( 'woocommerce_webhook_ids_status_%s', $status ); }