src/Potter/Post/Type.php
protected function getArgs($customArgs = [])
    {
        $args = [
            'label'         => $this->plural,
            'description'   => $this->description,
            'labels'        => $this->getLabels(),
            'supports'      => $this->supports,
            'taxonomies'    => $this->taxonomies,
            'hierarchical'  => $this->hierarchical,
            'public'        => $this->public,
            'show_ui'       => $this->show_ui,
            'menu_position' => $this->menu_position,
            'has_archive'   => $this->has_archive,
            'menu_icon'     => $this->icon ? $this->icon : false,
        ];

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

        $args = wp_parse_args($args, $customArgs);

        return wp_parse_args($this->args, $args);
    }
protected function getArgs($customArgs = [])
    {
        $args = [
            'label'         => $this->plural,
            'description'   => $this->description,
            'labels'        => $this->getLabels(),
            'supports'      => $this->supports,
            'taxonomies'    => $this->taxonomies,
            'hierarchical'  => $this->hierarchical,
            'public'        => $this->public,
            'show_ui'       => $this->show_ui,
            'menu_position' => $this->menu_position,
            'has_archive'   => $this->has_archive,
            'menu_icon'     => $this->icon ? $this->icon : false,
        ];

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

        $args = wp_parse_args($args, $customArgs);

        return wp_parse_args($this->args, $args);
    }
@param array $customArgs

@return array