Custom Taxonomies - Slicejack/OmniBuilder GitHub Wiki

OmniBuilder enables you to register and manage your custom taxonomies more easely as well. There are two ways by which you can define your custom taxonomies via the OmniBuilder library.

Calling the add_taxonomy metod

use OmniBuilder\Custom_Post_Type;

$project = new Custom_Post_Type( 'project' );
$project->add_taxonomy( 'Project Category' );

Instantiating OmniBuilder\Custom_Taxonomy class

use OmniBuilder\Custom_Post_Type;
use OmniBuilder\Custom_Taxonomy;

$project = new Custom_Post_Type( 'project' );
$project_category = new Custom_Taxonomy( 'Project Category', $project );

Further reading