/** * Registra o Post Type */ public function register() { $args = $this->get_register_args(array('menu_icon' => 'dashicons-images-alt')); register_post_type($this->post_type, $args); $taxonomy = new Taxonomy(array('post_type' => 'banner', 'labels' => $this->labels)); $taxonomy->register(); }
/** * Register custom taxonomies. * * @param array $taxonomies */ public static function taxonomies(array $taxonomies) { foreach ($taxonomies as $taxonomy) { Taxonomy::register($taxonomy['name'], $taxonomy['slug'], $taxonomy['object_type'], $taxonomy['args']); } }