| @@ 243-251 (lines=9) @@ | ||
| 240 | * WooCommerce Analytics should only be available |
|
| 241 | * when running WooCommerce 3+ |
|
| 242 | */ |
|
| 243 | if ( |
|
| 244 | 'woocommerce-analytics' === $module['module'] |
|
| 245 | && ( |
|
| 246 | ! class_exists( 'WooCommerce' ) |
|
| 247 | || version_compare( WC_VERSION, '3.0', '<' ) |
|
| 248 | ) |
|
| 249 | ) { |
|
| 250 | return false; |
|
| 251 | } |
|
| 252 | ||
| 253 | /* |
|
| 254 | * In Offline mode, modules that require a site or user |
|
| @@ 323-331 (lines=9) @@ | ||
| 320 | * WooCommerce Analytics should only be available |
|
| 321 | * when running WooCommerce 3+ |
|
| 322 | */ |
|
| 323 | if ( |
|
| 324 | 'woocommerce-analytics' === $module['module'] |
|
| 325 | && ( |
|
| 326 | ! class_exists( 'WooCommerce' ) |
|
| 327 | || version_compare( WC_VERSION, '3.0', '<' ) |
|
| 328 | ) |
|
| 329 | ) { |
|
| 330 | return 'Requires WooCommerce 3+ plugin'; |
|
| 331 | } |
|
| 332 | ||
| 333 | /* |
|
| 334 | * Plan restrictions. |
|