PHPackages                             ralfhortt/wp-custom-taxonomy - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. ralfhortt/wp-custom-taxonomy

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

ralfhortt/wp-custom-taxonomy
============================

A WordPress custom taxonomy helper

2.0.1(5y ago)0192MITPHP

Since Jan 16Pushed 5y ago1 watchersCompare

[ Source](https://github.com/Horttcore/wp-custom-taxonomy)[ Packagist](https://packagist.org/packages/ralfhortt/wp-custom-taxonomy)[ RSS](/packages/ralfhortt-wp-custom-taxonomy/feed)WikiDiscussions master Synced today

READMEChangelog (2)Dependencies (1)Versions (3)Used By (0)

Custom Taxonomy Helper Class
============================

[](#custom-taxonomy-helper-class)

Installation
------------

[](#installation)

`composer require ralfhortt/wp-custom-taxonomy`

Usage
-----

[](#usage)

Extend the abstract class `Taxonomy` and overwrite following methods:

- `getConfig()`
- `getLabels()`

The extending class *MUST* define protected class variable `slug`

The extending class *MUST* define protected class variable `postTypes`

The extending class *CAN* define protected class variable `useFilters`

### Example

[](#example)

```
