[wp-hackers] where does the custom taxonomy info is kept?

Haluk Karamete halukkaramete at gmail.com
Sat Apr 7 00:32:21 UTC 2012


I just run this test code ( the sample code right from the codex )

  $labels = array(
    'name' => _x( 'Genres', 'taxonomy general name' ),
    'singular_name' => _x( 'Genre', 'taxonomy singular name' ),
    'search_items' =>  __( 'Search Genres' ),
    'all_items' => __( 'All Genres' ),
    'parent_item' => __( 'Parent Genre' ),
    'parent_item_colon' => __( 'Parent Genre:' ),
    'edit_item' => __( 'Edit Genre' ),
    'update_item' => __( 'Update Genre' ),
    'add_new_item' => __( 'Add New Genre' ),
    'new_item_name' => __( 'New Genre Name' ),
    'menu_name' => __( 'Genre' ),
  );

  register_taxonomy('genre',array('book'), array(
    'hierarchical' => true,
    'labels' => $labels,
    'show_ui' => true,
    'query_var' => true,
    'rewrite' => array( 'slug' => 'genre' ),
  ));


and then I run this

$taxonomies=get_taxonomies('','names');
foreach ($taxonomies as $taxonomy ) {
  echo '<p>'. $taxonomy. '</p>';
}


And as result, expectedly, I get to see the newly created custom taxonomy
"genre" reported along with the other ones such as link_category,
post_format and so on.

But I am unable to spot any trace of it whatsoever in any of the wordpress
tables! The word genre does not exist.

Where does the newly created custom taxonomy data get stored?

Mind due that there are no terms associated under it yet.


More information about the wp-hackers mailing list