public function registerTaxonomyToObjects()
    {
        // register Taxonomy to each of the PostTypes assigned
        if (!empty($this->posttypes)) {
            foreach ($this->posttypes as $posttype) {
                register_taxonomy_for_object_type($this->name, $posttype);
            }
        }
    }
public function registerTaxonomyToObjects()
    {
        // register Taxonomy to each of the PostTypes assigned
        if (!empty($this->posttypes)) {
            foreach ($this->posttypes as $posttype) {
                register_taxonomy_for_object_type($this->name, $posttype);
            }
        }
    }
public function registerTaxonomyToObjects ( ) { // register Taxonomy to each of the PostTypes assigned if ( ! empty ( $ this -> posttypes ) ) { foreach ( $ this -> posttypes as $ posttype ) { register_taxonomy_for_object_type ( $ this -> name , $ posttype ) ; } } }
Register the Taxonomy to PostTypes
@return void
Register the Taxonomy to PostTypes