_get_meta_table( string $type )
Retrieve the name of the metadata table for the specified object type.
Description Description
Parameters Parameters
- $type
-
(string) (Required) Type of object to get metadata table for (e.g., comment, post, term, or user).
Return Return
(string|false) Metadata table name, or false if no metadata table exists
Source Source
File: wp-includes/meta.php
function _get_meta_table( $type ) { global $wpdb; $table_name = $type . 'meta'; if ( empty( $wpdb->$table_name ) ) { return false; } return $wpdb->$table_name; }
Expand full source code Collapse full source code View on Trac
Changelog Changelog
Version | Description |
---|---|
2.9.0 | Introduced. |