PluginProbe
Visualizer – Tables & Charts Manager with Built-in AI Generator / 3.2.0
Visualizer – Tables & Charts Manager with Built-in AI Generator v3.2.0
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 3.10.4 All 148 releases
← All changes | classes/Visualizer/Source/Query/Params.php +2 -5 3.10.113.2.0 View file →
@@ -317,9 +317,9 @@
317 317 $tables = get_transient( 'visualizer_db_tables' );
318 318 if ( $tables ) {
319 319 return $tables;
320 320 }
321 - $tables = array();
321 +
322 322 $prefix = apply_filters( 'visualizer_db_prefix', $wpdb->prefix );
323 323 $sql = $wpdb->get_col( 'SHOW TABLES', 0 );
324 324 foreach ( $sql as $table ) {
325 325 if ( empty( $prefix ) || 0 === strpos( $table, $prefix ) ) {
@@ -336,9 +336,9 @@
336 336 *
337 337 * @access public
338 338 * @return array
339 339 */
340 - public static function get_all_db_tables_column_mapping( $chart_id, $use_filter = true ) {
340 + public static function get_all_db_tables_column_mapping() {
341 341 $mapping = array();
342 342 $tables = self::get_db_tables();
343 343 foreach ( $tables as $table ) {
344 344 $cols = self::get_db_table_columns( $table, true );
@@ -343,11 +343,8 @@
343 343 foreach ( $tables as $table ) {
344 344 $cols = self::get_db_table_columns( $table, true );
345 345 $names = wp_list_pluck( $cols, 'name' );
346 346 $mapping[ $table ] = $names;
347 - }
348 - if ( $use_filter ) {
349 - return apply_filters( 'visualizer_db_tables_column_mapping', $mapping, $chart_id );
350 347 }
351 348 return $mapping;
352 349 }
353 350