/** * ********************************TAXONOMY********************************* */ public function categories() { $cat = new cwp_taxonomy('product_category', 'Product Department'); $cat->set_post_types($this->get_post_types()); $cat->register(); }
/** * ********************************TAXONOMY********************************* */ public static function categories($name, $type) { $cat = new cwp_taxonomy($name . '_category', ucfirst($name) . ' Category'); $cat->set_post_types($type); $cat->register(); }