| @@ -737,13 +737,22 @@ | ||
| 737 | 737 | /** |
| 738 | 738 | * Gets the features for the provided license type. |
| 739 | 739 | */ |
| 740 | 740 | public static final function get_features_for_license( $plan ) { |
| 741 | + $is_new_personal = apply_filters( 'visualizer_is_new_personal', false ); | |
| 741 | 742 | switch ( $plan ) { |
| 742 | 743 | case 1: |
| 743 | - return array( 'import-wp', 'import-wc-report', 'import-file', 'import-url' ); | |
| 744 | + $features = array( 'import-wp', 'import-wc-report', 'import-file', 'import-url' ); | |
| 745 | + if ( ! $is_new_personal ) { | |
| 746 | + $features[] = 'db-query'; | |
| 747 | + } | |
| 748 | + return $features; | |
| 744 | 749 | case 2: |
| 745 | - return array( 'db-query', 'schedule-chart', 'chart-permissions', 'import-chart', 'data-filter-configuration', 'frontend-actions' ); | |
| 750 | + $features = array( 'schedule-chart', 'chart-permissions', 'import-chart', 'data-filter-configuration', 'frontend-actions' ); | |
| 751 | + if ( $is_new_personal ) { | |
| 752 | + $features[] = 'db-query'; | |
| 753 | + } | |
| 754 | + return $features; | |
| 746 | 755 | } |
| 747 | 756 | } |
| 748 | 757 | |
| 749 | 758 | /** |