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

Import WP – CSV &amp; XML Import Export for WordPress, version 2.7.9. 30 lines.

- Page: https://pluginprobe.com/plugins/jc-importer/2.7.9/code/class/ImportWP.php
- Raw: https://pluginprobe.com/plugins/jc-importer/2.7.9/raw/class/ImportWP.php
- Modified: 2020-09-22T19:27:48+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.7.9/code/class/ImportWP.php#L10-L20`.

```php
<?php

namespace ImportWP;

use ImportWP\Common\Rest\RestManager;

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

    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();
        }
    }
}

```
