API / Minn\Runtime / MetaTypes

MetaTypes final class

Minn\Runtime\MetaTypes · public/minn/src/Minn/Runtime/MetaTypes.php · 21 lines

Meta types a plugin brought, by the table it named on $wpdb as "{$type}meta" (WooCommerce's order items keep theirs in woocommerce_order_itemmeta). The reference reads any such table with "{$type}_id" for the object and meta_id for the row; Meta does the same.

Used by 1

Constants and properties

privatestatic array $tables

Public

staticregister(string $type, string $table): bool#

Registers a meta type by its full table name; refused unless both are plain identifiers.

statictable(string $type): ?string#

The full table name of a registered meta type, or null.