get_var( $sql_query ); if ( $formatted === true ) $database_size = ADBC_Common_Utils::format_bytes( $database_size ); return $database_size; } /** * Get number of tables. * * @return int Number of tables. */ public static function get_number_of_tables() { global $wpdb; // Get number of tables. $tables = $wpdb->get_results( "SHOW TABLES", ARRAY_N ); return count( $tables ); } }