PluginProbe
Visualizer – Tables & Charts Manager with Built-in AI Generator / 3.4.6
Visualizer – Tables & Charts Manager with Built-in AI Generator v3.4.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/Source/Query.php +7 -2 3.4.53.4.6 View file →
@@ -89,8 +89,10 @@
89 89 if ( strpos( strtolower( $this->_query ), ' limit ' ) === false ) {
90 90 $this->_query .= ' LIMIT ' . apply_filters( 'visualizer_sql_query_limit', 1000, $this->_chart_id );
91 91 }
92 92
93 + $this->_query = apply_filters( 'visualizer_db_query', $this->_query, $this->_chart_id, $this->_params );
94 +
93 95 $results = array();
94 96 $headers = array();
95 97
96 98 // short circuit results for remote dbs.
@@ -144,11 +146,14 @@
144 146 }
145 147 }
146 148
147 149 if ( $as_html ) {
148 - return $this->html( $headers, $results );
150 + $results = $this->html( $headers, $results );
151 + } else {
152 + $results = $this->object( $headers, $results );
149 153 }
150 - return $this->object( $headers, $results );
154 +
155 + return apply_filters( 'visualizer_db_query_results', $results, $headers, $as_html, $results_as_numeric_array, $raw_results, $this->_query, $this->_chart_id, $this->_params );
151 156 }
152 157
153 158 /**
154 159 * Get the data type of the column.