public function tags() { $tags = new cwp_taxonomy('product_tag', 'Product Tag'); $tags->set_post_types($this->get_post_types()); $tags->tags(); }
public static function tags($name, $type) { $tags = new cwp_taxonomy($name . '_tag', ucfirst($name) . ' Tags'); $tags->set_post_types($type); $tags->tags(); }