Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
0.00% |
0 / 2 |
|
0.00% |
0 / 2 |
CRAP | |
0.00% |
0 / 1 |
| Features | |
0.00% |
0 / 2 |
|
0.00% |
0 / 2 |
6 | |
0.00% |
0 / 1 |
| is_proxy_tracking_enabled | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| is_clickhouse_enabled | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| 1 | <?php |
| 2 | /** |
| 3 | * Features class for WooCommerce Analytics. |
| 4 | * |
| 5 | * @package automattic/woocommerce-analytics |
| 6 | */ |
| 7 | |
| 8 | namespace Automattic\Woocommerce_Analytics; |
| 9 | |
| 10 | /** |
| 11 | * Features class for WooCommerce Analytics. |
| 12 | */ |
| 13 | class Features { |
| 14 | |
| 15 | /** |
| 16 | * Check if proxy tracking is enabled. |
| 17 | * |
| 18 | * @return bool |
| 19 | */ |
| 20 | public static function is_proxy_tracking_enabled() { |
| 21 | /** |
| 22 | * Filter to enable/disable experimental proxy tracking for WooCommerce Analytics |
| 23 | * |
| 24 | * @since 0.9.0 |
| 25 | * |
| 26 | * @param bool $enabled Whether proxy tracking is enabled. Default false. |
| 27 | */ |
| 28 | return apply_filters( 'woocommerce_analytics_experimental_proxy_tracking_enabled', false ); |
| 29 | } |
| 30 | |
| 31 | /** |
| 32 | * Check if ClickHouse is enabled. |
| 33 | * |
| 34 | * @return bool |
| 35 | */ |
| 36 | public static function is_clickhouse_enabled() { |
| 37 | /** |
| 38 | * Filter to enable/disable ClickHouse event tracking. |
| 39 | * |
| 40 | * @module woocommerce-analytics |
| 41 | * |
| 42 | * @since 0.5.0 |
| 43 | * |
| 44 | * @param bool $enabled Whether ClickHouse event tracking is enabled. |
| 45 | */ |
| 46 | return apply_filters( 'woocommerce_analytics_clickhouse_enabled', false ); |
| 47 | } |
| 48 | } |