wpseek.com
WordPress开发者和主题制作者的搜索引擎



_get_meta_table › WordPress Function

Since2.9.0
已弃用n/a
_get_meta_table ( $type )
参数:
  • (string) $type Type of object metadata is for. Accepts 'post', 'comment', 'term', 'user', or any other object type with an associated meta table.
    Required: Yes
返回:
  • (string|false) Metadata table name, or false if no metadata table exists
定义在:
文档:

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



源码

function _get_meta_table( $type ) {
	global $wpdb;

	$table_name = $type . 'meta';

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

	return $wpdb->$table_name;
}