WPDev.one
Core Function
View Source on Trac ↗

register_taxonomy_for_object_type()

register_taxonomy_for_object_type( mixed $taxonomy, mixed $object_type )

Adds an already registered taxonomy to an object type.

Parameters 2 required

Name / Type Description
$taxonomy
string

Name of taxonomy object.

Required
$object_type
string

Name of the object type.

Required

Return Value

(bool)
True if successful, false if not.

Function Information

Since Version
3.0.0
Source File
wp-includes/taxonomy.php
Advertisement