register_taxonomy_for_object_type() WP 1.0
Add an already registered taxonomy to an object type.
1 time = 0.000001s = speed of light | 50000 times = 0.03s = speed of light | PHP 7.1.11, WP 4.9.8
Hooks from the function
Return
true/false. True if successful, false if not.
Usage
register_taxonomy_for_object_type( $taxonomy, $object_type );
- $taxonomy(string) (required)
- Name of taxonomy object.
- $object_type(string) (required)
- Name of the object type.
Notes
- Global. Array. $wp_taxonomies The registered taxonomies.
Changelog
Since 3.0.0 | Introduced. |
Code of register_taxonomy_for_object_type() register taxonomy for object type WP 5.6
Related Functions
From category: Any taxonomy
- edit_term_link()
- get_edit_term_link()
- get_taxonomies()
- get_taxonomy()
- get_term()
- get_term_by()
- get_term_children()
- get_term_field()
- get_term_link()