WC_Webhook_Data_Store::get_transient_key()privateWC 3.6.0

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 8.7.0

private function get_transient_key( $status = '' ) {
	return empty( $status ) ? 'woocommerce_webhook_ids' : sprintf( 'woocommerce_webhook_ids_status_%s', $status );
}