Codex tools: Log in
Contents |
This function adds an already registered taxonomy to an (custom) object type. It takes in a name, an object name that it affects. It returns true on success.
<?php register_taxonomy_for_object_type($taxonomy, $object_type); ?>
<?php register_taxonomy_for_object_type('category', 'foo'); ?>
Since: 3.0
register_taxonomy_for_object_type() is located in wp-includes/taxonomy.php.
Terms: is_term(), term_exists(), get_term(), get_term_by(), get_term_children(), get_terms(), sanitize term(), wp_get_object_terms()