PluginProbe
Visualizer – Tables & Charts Manager with Built-in AI Generator / 3.11.6
Visualizer – Tables & Charts Manager with Built-in AI Generator v3.11.6
4.0.8 4.0.7 4.0.6 4.0.5 4.0.4 4.0.3 3.0.5 3.0.6 3.0.7 3.0.8 3.0.9 3.1.0 3.1.1 3.1.2 3.1.3 3.10.0 3.10.1 3.10.10 3.10.11 3.10.12 3.10.13 3.10.14 3.10.15 3.10.2 3.10.3 All 149 releases
← All changes | classes/Visualizer/Module.php +12 -3 3.10.153.11.6 View file →
@@ -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 /**