set_slug($slug); } /** * Retrieves the taxonomy object of $taxonomy. * * @since 0.9.16 * @return \WP_Taxonomy|false The taxonomy object or false if the taxonomy doesn't exist. */ public function get_taxonomy() { $taxonomy = get_taxonomy($this->get_slug()->get_value()); return $taxonomy; } }