Ejemplo n.º 1
0
 /**
  * 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();
 }
Ejemplo n.º 2
0
 /**
  * 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']);
     }
 }