publish) ? (int) $count->publish : 0; $tables = get_posts([ 'post_type' => \King_Addons\Data_Table_Builder::POST_TYPE, 'post_status' => 'publish', 'posts_per_page' => 50, ]); $total_rows = 0; $top_table = null; $top_rows = 0; foreach ($tables as $table) { $data = get_post_meta($table->ID, \King_Addons\Data_Table_Builder::META_DATA, true); $rows = is_array($data) && isset($data['rows']) && is_array($data['rows']) ? count($data['rows']) : 0; $total_rows += $rows; if ($rows > $top_rows) { $top_rows = $rows; $top_table = $table; } } $recent_tables = get_posts([ 'post_type' => \King_Addons\Data_Table_Builder::POST_TYPE, 'post_status' => 'publish', 'posts_per_page' => 5, 'orderby' => 'date', 'order' => 'DESC', ]); ?>
post_title); ?>
10

ID, \King_Addons\Data_Table_Builder::META_DATA, true); $rows = is_array($data) && isset($data['rows']) && is_array($data['rows']) ? count($data['rows']) : 0; $cols = is_array($data) && isset($data['columns']) && is_array($data['columns']) ? count($data['columns']) : 0; ?>
post_title); ?> ID . '"]'); ?> post_modified)); ?>