PluginProbe
Import WP – CSV & XML Import Export for WordPress / 2.7.5
Import WP – CSV & XML Import Export for WordPress v2.7.5
2.15.1 2.15.0 2.14.24 2.14.23 2.7.0 2.7.1 2.7.10 2.7.11 2.7.12 2.7.13 2.7.14 2.7.2 2.7.3 2.7.4 2.7.5 2.7.6 2.7.7 2.7.8 2.7.9 2.8.0 2.8.1 2.8.2 2.8.3 2.9.0 2.9.1 All 144 releases
jc-importer / class / Common / Importer / TemplateInterface.php

TemplateInterface.php in Import WP – CSV & XML Import Export for WordPress 2.7.5, at class/Common/Importer/TemplateInterface.php

46 lines 1.1 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace ImportWP\Common\Importer;
4
5 use ImportWP\Common\Model\ImporterModel;
6
7 interface TemplateInterface
8 {
9 public function register();
10 public function register_settings();
11 public function register_options();
12
13 /**
14 * Process data before record is importer.
15 *
16 * Alter data that is passed to the mapper.
17 *
18 * @param ParsedData $data
19 * @return ParsedData
20 */
21 public function pre_process(ParsedData $data);
22
23 /**
24 * Process data after record is imported, but before custom fields.
25 *
26 * Use data that is returned from the mapper.
27 *
28 * @param int $post_id
29 * @param ParsedData $data
30 * @param ImporterModel $importer_model
31 * @return ParsedData
32 */
33 public function process($post_id, ParsedData $data, ImporterModel $importer_model);
34
35 /**
36 * Process data after record is importer.
37 *
38 * Use data that is returned from the mapper.
39 *
40 * @param int $post_id
41 * @param ParsedData $data
42 * @return void
43 */
44 public function post_process($post_id, ParsedData $data);
45 }
46