| @@ -137,9 +137,9 @@ | ||
| 137 | 137 | * @uses add_filter() To register filter hook. |
| 138 | 138 | * |
| 139 | 139 | * @access protected |
| 140 | 140 | * @param string $tag The name of the filter to hook the $method to. |
| 141 | - * @param type $method The name of the method to be called when the filter is applied. | |
| 141 | + * @param string $method The name of the method to be called when the filter is applied. | |
| 142 | 142 | * @param int $priority optional. Used to specify the order in which the functions associated with a particular action are executed (default: 10). Lower numbers correspond with earlier execution, and functions with the same priority are executed in the order in which they were added to the action. |
| 143 | 143 | * @param int $accepted_args optional. The number of arguments the function accept (default 1). |
| 144 | 144 | * @return Visualizer_Module |
| 145 | 145 | */ |
| @@ -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', 'db-query', 'import-wc-report' ); | |
| 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( 'schedule-chart', 'chart-permissions', 'import-chart', 'manual-data', '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 | /** |