public function unlink_taxonomies() { global $wpdb; $taxonomies = $this->taxonomies(); foreach ($taxonomies as $tax) { // update the taxonomy to exclude this post type $tax->object_type = WOOF::array_remove($tax->object_type, $this->name); $tax->update(); } }