# jc-importer/2.8.1/class/ImportWP.php

Import WP – CSV &amp; XML Import Export for WordPress, version 2.8.1. 36 lines.

- Page: https://pluginprobe.com/plugins/jc-importer/2.8.1/code/class/ImportWP.php
- Raw: https://pluginprobe.com/plugins/jc-importer/2.8.1/raw/class/ImportWP.php
- Modified: 2023-07-26T18:45:22+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.8.1/code/class/ImportWP.php#L10-L20`.

```php
<?php

namespace ImportWP;

use ImportWP\Common\Model\ImporterModel;
use ImportWP\Common\Rest\RestManager;

class ImportWP
{
    /**
     * @var RestManager
     */
    private $rest_manager;

    /**
     * @var ImporterModel
     */
    public $importer;

    public function __construct($is_pro = false)
    {
        $container = Container::getInstance();

        $container->setupServiceProviders($is_pro);

        $this->rest_manager = $container->get('rest_manager');
    }

    public function register()
    {
        if ($this->rest_manager) {
            $this->rest_manager->register();
        }
    }
}

```
