Switch language

wpseek.com
A WordPress-centric search engine for devs and theme authors




_get_meta_table [ WordPress Function ]

_get_meta_table ( $type )
Parameters:
  • (string) $type Type of object to get metadata table for (e.g., comment, post, or user)
Uses:
  • $wpdb
Returns:
  • (mixed) Metadata table name, or false if no metadata table exists
Defined at:



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

Source


<?php
function _get_meta_table($type) {
    global 
$wpdb;

    
$table_name $type 'meta';

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

    return 
$wpdb->$table_name;
}
?>

Examples [ wp-snippets.com ]

Top Google zoekresultaten

Meer ...

Gebruikersdiscussies [ wordpress.org ]

0 User Note(s)

Nog geen één. Wees de eerste!

Nieuw toevoegen ...



HTML5 Powered with CSS3 / Styling, Performance & Integration, and Semantics