Function: register_taxonomy_for_object_type

register_taxonomy_for_object_type( string $taxonomy, string $object_type )

Add an already registered taxonomy to an object type.

Shortcut: rtfot

You can use above key combination to trigger the associated snippet for this function in the WordPress Snippets for Visual Studio Code extension. You can also use this shortcut to search for this function on this website.


Name Type(s) Default Value Description
$taxonomy string

Name of taxonomy object.

$object_type string

Name of the object type.



True if successful, false if not.

WordPress Developer Newsletter

Stay informed of new chapter releases, important WordPress API updates and more.