wp-includes/class-wp-taxonomy.php:15Core class used for interacting with taxonomies.
Every hook that fires from inside WP_Taxonomy, in the order it appears in the class, grouped by the method that fires it.
$namestringpublic$labelstringpublic$labelsstdClasspublic$default_labels(string|null)[][]protected static$descriptionstringpublic$publicboolpublic$publicly_queryableboolpublic$hierarchicalboolpublic$show_uiboolpublic$show_tagcloudboolpublic$show_in_quick_editboolpublic$show_admin_columnboolpublic$meta_box_cbbool|callablepublic$meta_box_sanitize_cbcallablepublic$object_typestring[]public$capstdClasspublic$rewritearray|falsepublic$query_varstring|falsepublic$update_count_callbackcallablepublic$show_in_restboolpublic$rest_basestring|boolpublic$rest_namespacestring|boolpublic$rest_controller_classstring|boolpublic$rest_controllerWP_REST_Controllerpublic$default_termarray|stringpublic$sortbool|nullpublicwp_set_object_terms().$argsarray|nullpublicwp_get_object_terms() for this taxonomy.$_builtinboolpublic#[AllowDynamicProperties]final class WP_Taxonomy { /** * Taxonomy key. * * @since 4.7.0 * @var string */ public $name; /** * Name of the taxonomy shown in the menu. Usually plural. * * @since 4.7.0 * @var string */ public $label; /** * Labels object for this taxonomy. * * If not set, tag labels are inherited for non-hierarchical types * and category labels for hierarchical ones. * * @see get_taxonomy_labels() * * @since 4.7.0 * @var stdClass */ public $labels; /** * Default labels. * * @since 6.0.0 * @var (string|null)[][] $default_labels */ protected static $default_labels = array(); /** * A short descriptive summary of what the taxonomy is for. * * @since 4.7.0 * @var string */ public $description = ''; /** * Whether a taxonomy is intended for use publicly either via the admin interface or by front-end users. * * @since 4.7.0 * @var bool */ public $public = true; /** * Whether the taxonomy is publicly queryable. * * @since 4.7.0 * @var bool */ public $publicly_queryable = true; /** * Whether the taxonomy is hierarchical. * * @since 4.7.0 * @var bool */ public $hierarchical = false; /** * Whether to generate and allow a UI for managing terms in this taxonomy in the admin. * * @since 4.7.0 * @var bool */ public $show_ui = true; /**Introduced in 4.7.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
src/wp-includes/class-wp-taxonomy.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.