WordPress at a glance
function is not described

_get_meta_table() WP 2.9.0

Retrieve the name of the metadata table for the specified object type.

  • Global. wpdb. $wpdb WordPress database abstraction object.

No Hooks.


String/false. Metadata table name, or false if no metadata table exists


_get_meta_table( $type );
$type(string) (required)
Type of object to get metadata table for (e.g., comment, post, term, or user).

Code of get meta table: wp-includes/meta.php WP 5.2.2

function _get_meta_table( $type ) {
	global $wpdb;

	$table_name = $type . 'meta';

	if ( empty( $wpdb->$table_name ) ) {
		return false;

	return $wpdb->$table_name;