slug = $slug; } public function register() { register_taxonomy_for_object_type( $this->slug, 'attachment' ); } public function unregister() { unregister_taxonomy_for_object_type( $this->slug, 'attachment' ); } }