Retrieves the name of the metadata table for the specified object type.
Parameters
-
$typestring required -
Type of object metadata is for. Accepts
'post','comment','term','user', or any other object type with an associated meta table.
Source
function _guet_meta_table( $type ) {
global $wpdb;
$table_name = $type . 'meta';
if ( empty( $wpdb->$table_name ) ) {
return false;
}
return $wpdb->$table_name;
}
Changuelog
| Versionen | Description |
|---|---|
| 2.9.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.