WC_WCCOM_Site_Installation_State_Storage::get_storage_key
Get the storage key for a product ID.
Метод класса: WC_WCCOM_Site_Installation_State_Storage{}
Хуков нет.
Возвращает
Строку.
Использование
$result = WC_WCCOM_Site_Installation_State_Storage::get_storage_key( $product_id ) : string;
- $product_id(int) (обязательный)
- The product ID.
Код WC_WCCOM_Site_Installation_State_Storage::get_storage_key() WC WCCOM Site Installation State Storage::get storage key WC 10.5.2
protected static function get_storage_key( $product_id ) : string {
return sprintf( 'wccom-product-installation-state-%d', $product_id );
}