# jc-importer/2.14.23/class/Common/AddonAPI/Importer/Template/Template.php

Import WP – CSV &amp; XML Import Export for WordPress, version 2.14.23. 62 lines.

- Page: https://pluginprobe.com/plugins/jc-importer/2.14.23/code/class/Common/AddonAPI/Importer/Template/Template.php
- Raw: https://pluginprobe.com/plugins/jc-importer/2.14.23/raw/class/Common/AddonAPI/Importer/Template/Template.php
- Modified: 2024-07-14T15:13:26+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/jc-importer/2.14.23/code/class/Common/AddonAPI/Importer/Template/Template.php#L10-L20`.

```php
<?php

namespace ImportWP\Common\AddonAPI\Importer\Template;

class Template extends Group
{
    /**
     * @var Panel[]
     */
    private $_panels = [];

    /**
     * @var CustomFields[]
     */
    private $_custom_fields = [];

    public function register_panel($name, $args = [])
    {
        $panel = new Panel($name, $args);
        $this->_panels[] = $panel;
        return $panel;
    }

    public function get_panel_ids()
    {
        $output = [];
        foreach ($this->_panels as $panel) {
            $output[] = $panel->get_id();
        }

        return $output;
    }

    public function get_panels()
    {
        return $this->_panels;
    }

    public function get_panel($panel_id)
    {
        foreach ($this->_panels as $panel) {
            if ($panel->get_id() == $panel_id) {
                return $panel;
            }
        }

        return false;
    }

    public function register_custom_fields($name, $prefix)
    {
        $tmp = new CustomFields($name, $prefix);
        $this->_custom_fields[] = $tmp;
        return $tmp;
    }

    public function get_custom_fields()
    {
        return $this->_custom_fields;
    }
}

```
