public function register()
    {
        if ($this->model->hasTaxonomies()) {
            foreach ($this->model->getTaxonomies() as $taxonomy) {
                $this->registerTaxonomy($taxonomy);

                if ($this->shouldAddRoutes($taxonomy)) {
                    $this->addResourceRoute($taxonomy);
                }
            }
        }
    }
public function register()
    {
        if ($this->model->hasTaxonomies()) {
            foreach ($this->model->getTaxonomies() as $taxonomy) {
                $this->registerTaxonomy($taxonomy);

                if ($this->shouldAddRoutes($taxonomy)) {
                    $this->addResourceRoute($taxonomy);
                }
            }
        }
    }
public function register ( ) { if ( $ this -> model -> hasTaxonomies ( ) ) { foreach ( $ this -> model -> getTaxonomies ( ) as $ taxonomy ) { $ this -> registerTaxonomy ( $ taxonomy ) ; if ( $ this -> shouldAddRoutes ( $ taxonomy ) ) { $ this -> addResourceRoute ( $ taxonomy ) ; } } } }
Attemps to register a taxonomy on a post type.
@link https://codex.wordpress.org/Function_Reference/register_taxonomy
Attemps to register a taxonomy on a post type .