# jc-importer/2.7.5/class/Common/Importer/TemplateInterface.php

Import WP – CSV &amp; XML Import Export for WordPress, version 2.7.5. 46 lines.

- Page: https://pluginprobe.com/plugins/jc-importer/2.7.5/code/class/Common/Importer/TemplateInterface.php
- Raw: https://pluginprobe.com/plugins/jc-importer/2.7.5/raw/class/Common/Importer/TemplateInterface.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.5/code/class/Common/Importer/TemplateInterface.php#L10-L20`.

```php
<?php

namespace ImportWP\Common\Importer;

use ImportWP\Common\Model\ImporterModel;

interface TemplateInterface
{
    public function register();
    public function register_settings();
    public function register_options();

    /**
     * Process data before record is importer.
     *
     * Alter data that is passed to the mapper.
     *
     * @param ParsedData $data
     * @return ParsedData
     */
    public function pre_process(ParsedData $data);

    /**
     * Process data after record is imported, but before custom fields.
     *
     * Use data that is returned from the mapper.
     *
     * @param int $post_id
     * @param ParsedData $data
     * @param ImporterModel $importer_model
     * @return ParsedData
     */
    public function process($post_id, ParsedData $data, ImporterModel $importer_model);

    /**
     * Process data after record is importer.
     *
     * Use data that is returned from the mapper.
     *
     * @param int $post_id
     * @param ParsedData $data
     * @return void
     */
    public function post_process($post_id, ParsedData $data);
}

```
