src/Potter/Taxonomy/Create.php
public function setArgs($customizations = array())
   {
      $defaults = [
         'label'        => $this->plural,
         'labels'       => $this->getLabels(),
         'hierarchical' => $this->hierarchical,
      ];

      if (!empty($this->route)):
         $defaults['rewrite'] = ['slug' => $this->route, 'with_front' => true];
      endif;

      $defaults = wp_parse_args($customizations, $defaults);

      $this->args = wp_parse_args($this->args, $defaults);

      return $this;
   }
public function setArgs($customizations = array())
   {
      $defaults = [
         'label'        => $this->plural,
         'labels'       => $this->getLabels(),
         'hierarchical' => $this->hierarchical,
      ];

      if (!empty($this->route)):
         $defaults['rewrite'] = ['slug' => $this->route, 'with_front' => true];
      endif;

      $defaults = wp_parse_args($customizations, $defaults);

      $this->args = wp_parse_args($this->args, $defaults);

      return $this;
   }
@param array $customizations

@return $this