src/Entities/Taxonomy.php
public function registerEntity()
    {
        parent::registerEntity();

        // Args
        $args = apply_filters('cuztom_taxonomy_args', array_merge(
            [
                'label'             => sprintf(__('%s', 'cuztom'), $this->plural),
                'hierarchical'      => true,
                'public'            => true,
                'show_ui'           => true,
                'show_in_nav_menus' => true,
                '_builtin'          => false,
                'show_admin_column' => false,
                'labels'            => [
                    'name'              => sprintf(_x('%s', 'taxonomy general name', 'cuztom'), $this->plural),
                    'singular_name'     => sprintf(_x('%s', 'taxonomy singular name', 'cuztom'), $this->title),
                    'search_items'      => sprintf(__('Search %s', 'cuztom'), $this->plural),
                    'all_items'         => sprintf(__('All %s', 'cuztom'), $this->plural),
                    'parent_item'       => sprintf(__('Parent %s', 'cuztom'), $this->title),
                    'parent_item_colon' => sprintf(__('Parent %s:', 'cuztom'), $this->title),
                    'edit_item'         => sprintf(__('Edit %s', 'cuztom'), $this->title),
                    'update_item'       => sprintf(__('Update %s', 'cuztom'), $this->title),
                    'add_new_item'      => sprintf(__('Add New %s', 'cuztom'), $this->title),
                    'new_item_name'     => sprintf(__('New %s Name', 'cuztom'), $this->title),
                    'menu_name'         => sprintf(__('%s', 'cuztom'), $this->plural),
                ],
            ],
            $this->original
        ), $this);

        register_taxonomy($this->name, $this->postType, $args);
    }
public function registerEntity()
    {
        parent::registerEntity();

        // Args
        $args = apply_filters('cuztom_taxonomy_args', array_merge(
            [
                'label'             => sprintf(__('%s', 'cuztom'), $this->plural),
                'hierarchical'      => true,
                'public'            => true,
                'show_ui'           => true,
                'show_in_nav_menus' => true,
                '_builtin'          => false,
                'show_admin_column' => false,
                'labels'            => [
                    'name'              => sprintf(_x('%s', 'taxonomy general name', 'cuztom'), $this->plural),
                    'singular_name'     => sprintf(_x('%s', 'taxonomy singular name', 'cuztom'), $this->title),
                    'search_items'      => sprintf(__('Search %s', 'cuztom'), $this->plural),
                    'all_items'         => sprintf(__('All %s', 'cuztom'), $this->plural),
                    'parent_item'       => sprintf(__('Parent %s', 'cuztom'), $this->title),
                    'parent_item_colon' => sprintf(__('Parent %s:', 'cuztom'), $this->title),
                    'edit_item'         => sprintf(__('Edit %s', 'cuztom'), $this->title),
                    'update_item'       => sprintf(__('Update %s', 'cuztom'), $this->title),
                    'add_new_item'      => sprintf(__('Add New %s', 'cuztom'), $this->title),
                    'new_item_name'     => sprintf(__('New %s Name', 'cuztom'), $this->title),
                    'menu_name'         => sprintf(__('%s', 'cuztom'), $this->plural),
                ],
            ],
            $this->original
        ), $this);

        register_taxonomy($this->name, $this->postType, $args);
    }
public function registerEntity ( ) { parent :: registerEntity ( ) ; // Args $ args = apply_filters ( 'cuztom_taxonomy_args' , array_merge ( [ 'label' => sprintf ( __ ( '%s' , 'cuztom' ) , $ this -> plural ) , 'hierarchical' => true , 'public' => true , 'show_ui' => true , 'show_in_nav_menus' => true , '_builtin' => false , 'show_admin_column' => false , 'labels' => [ 'name' => sprintf ( _x ( '%s' , 'taxonomy general name' , 'cuztom' ) , $ this -> plural ) , 'singular_name' => sprintf ( _x ( '%s' , 'taxonomy singular name' , 'cuztom' ) , $ this -> title ) , 'search_items' => sprintf ( __ ( 'Search %s' , 'cuztom' ) , $ this -> plural ) , 'all_items' => sprintf ( __ ( 'All %s' , 'cuztom' ) , $ this -> plural ) , 'parent_item' => sprintf ( __ ( 'Parent %s' , 'cuztom' ) , $ this -> title ) , 'parent_item_colon' => sprintf ( __ ( 'Parent %s:' , 'cuztom' ) , $ this -> title ) , 'edit_item' => sprintf ( __ ( 'Edit %s' , 'cuztom' ) , $ this -> title ) , 'update_item' => sprintf ( __ ( 'Update %s' , 'cuztom' ) , $ this -> title ) , 'add_new_item' => sprintf ( __ ( 'Add New %s' , 'cuztom' ) , $ this -> title ) , 'new_item_name' => sprintf ( __ ( 'New %s Name' , 'cuztom' ) , $ this -> title ) , 'menu_name' => sprintf ( __ ( '%s' , 'cuztom' ) , $ this -> plural ) , ] , ] , $ this -> original ) , $ this ) ; register_taxonomy ( $ this -> name , $ this -> postType , $ args ) ; }
Registers the custom Taxonomy with the given arguments.

@return void
Registers the custom Taxonomy with the given arguments .