Meta Box Custom Table featured image

Meta Box Custom Table Addon v2.3.0

Developer: Meta BoxCategory: WordPress PluginsTrusted with 47 downloadsPro1 favoriteLatest v2.3.0Updated 8mo ago

Save custom fields data to custom table instead of the default meta tables. Reduce database size and increase performance.

Same brand

More from Meta Box

Meta Box AIO icon

Meta Box AIO

by Meta Box

At the moment, each extension of the plugin Meta Box is provided separately.

Meta Box Conditional Logic icon

Meta Box Conditional Logic

by Meta Box

Control when and where meta boxes, fields and HTML elements appear.

Meta Box Tabs icon

Meta Box Tabs

by Meta Box

Add as many custom fields as you want and organize them into tabs.

MB Custom Table is an extension of Meta Box plugin that helps you to save data to custom table instead of the default post / user / term meta table. All meta values are saved in a single row, and each column will be a meta key. This reduces the number of rows in the database which can cause a performance issue when the data grows. And let you have all of your data in one place, so you can easily view, edit, import, export it.

Save custom fields in custom table
Save custom fields in custom table

Why custom table for custom fields?

By default, WordPress uses meta tables for storing the meta data (custom fields). In order to satisfy a wide range of needs, WordPress use a flexible database structure, where each custom field is stored as a row with 4 columns: meta_idpost_idmeta_key and meta_value. While it seems to be fine at first, when your data grows, the number of database rows increase very fast.

Let’s take an example: If you’re using WooCommerce, each order (a custom post type) requires more than 40 custom fields as follows:

Custom fields for WooCommerce orders
Custom fields for WooCommerce orders

Imagine if you run a flower shop, and have 20 orders per day, then WordPress will store 20 * 40 = 800 rows in your database. After 1 month, it will be 30 * 800 = 24.000 rows, for just 30 * 20 = 600 orders.

What if we can store all the custom fields in a single row? Something like in the first screenshot, where each custom field takes only 1 column in the database. Therefore, with the case of WooCommerce orders, you only have 600 rows in the database for 600 orders. Besides, all the information about a single post can be viewed at once.

WHAT ARE THE BENEFITS OF THIS METHOD?

  • Your database size will reduce
  • As all the custom field data is on a same row, your query will be faster and simpler
  • You can view all the data at once using any database management tool
  • You can export all the data easier by exporting only one table

In order to achieve these goals, MB Custom Table extension is all you need.

MB Custom Table provides a simple API for you to create custom tables and store custom fields to custom tables. It works with all field types of Meta Box plugin as well as all meta types (post, user, term). The extension uses a simple syntax to define table and you won’t have to change your meta box definition.

See how to save WordPress custom fields in custom tables

Features

  • Uses WordPress recommended method to create custom tables, which allows you to upgrade table structure anytime.
  • Provides a simple API to define table structure.
  • Works with any meta types: post meta, user meta, term meta, comment meta.
  • Provides an easy way to integrate with your existing meta boxes.

Recent releases

Release history

View all 2 versions
v2.3.0Latest
Nov 7, 202538.9 KB
Allow models to add more features: `author`, `published_date`, `modified_date` via the `supports` parameter. [Learn more about it](https://docs.metabox.io/extensions/mb-custom-table/#usage). This version also simplifies the API for creating custom tables for models. You don't need to pass the last parameter for auto increament anymore. The plugin will auto handle that for you. This makes the code to create custom tables consistent for both normal posts/terms/users and models.
v2.2.5
Jul 25, 202534.5 KB
View changelog
Fixed
  • hook `mbct_after_delete` is not firing for bulk delete action

Frequently asked questions

Is Meta Box Custom Table GPL licensed?
Yes, Meta Box Custom Table is distributed under the GNU General Public License (GPL). You can legally use, modify, and redistribute it on unlimited websites.
Can I use Meta Box Custom Table on multiple websites?
Yes. Under the GPL license, there are no domain or site restrictions. You can install Meta Box Custom Table on as many websites as you need.
How much does Meta Box Custom Table cost on GPLCoffee?
Meta Box Custom Table is available for $5.99 for a 1-year license or $15.99 for a lifetime license. Membership plans also include credit-based access so you can download Meta Box Custom Table along with thousands of other plugins for a single subscription.
Are updates included with Meta Box Custom Table?
Yes. Every new release of Meta Box Custom Table is synced to GPLCoffee automatically. You can download the latest version any time, and subscribers can use the one-click connector plugin to update directly from their WordPress dashboard.
Is Meta Box Custom Table safe to download?
Every Meta Box Custom Table release is scanned with VirusTotal before publication. Scan results (including the specific threat report URL when available) are visible on each version page, and releases flagged as malicious are blocked from the catalog.

Auto-updates included

Install it once, update automatically.

The GPLC Connector installs this plugin from your wp-admin and rolls out new versions to your connected sites - up to 25. Included with 12-month and Geek Lifetime plans (plus legacy 6-month).