PluginProbe ʕ •ᴥ•ʔ
WP All Import – Drag & Drop Import for CSV, XML, Excel & Google Sheets / 3.2.2
WP All Import – Drag & Drop Import for CSV, XML, Excel & Google Sheets v3.2.2
4.1.1 3.9.5 3.9.6 4.0.0 4.0.1 4.1.0 trunk 2.12 2.13 2.14 3.0 3.0.1 3.0.2 3.0.3 3.0.4 3.1.0 3.1.1 3.1.2 3.1.3 3.1.4 3.1.5 3.2.0 3.2.1 3.2.2 3.2.3 3.2.4 3.2.5 3.2.6 3.2.7 3.2.8 3.2.9 3.3.0 3.3.1 3.3.2 3.3.3 3.3.4 3.3.5 3.3.6 3.3.7 3.3.8 3.3.9 3.4.0 3.4.1 3.4.2 3.4.3 3.4.4 3.4.5 3.4.6 3.4.7 3.4.8 3.4.9 3.5.0 3.5.1 3.5.2 3.5.3 3.5.4 3.5.5 3.5.6 3.5.7 3.5.8 3.5.9 3.6.0 3.6.1 3.6.2 3.6.3 3.6.4 3.6.5 3.6.6 3.6.7 3.6.8 3.6.9 3.7.0 3.7.1 3.7.2 3.7.3 3.7.3-beta-1.0 3.7.4 3.7.4-beta-1.0 3.7.5 3.7.6 3.7.7 3.7.8 3.7.9 3.8.0 3.9.0 3.9.1 3.9.2 3.9.3 3.9.4
wp-all-import / views / admin / import / options / _reimport_options.php
wp-all-import / views / admin / import / options Last commit date
_buttons_template.php 11 years ago _import_file.php 11 years ago _reimport_options.php 11 years ago _reimport_template.php 11 years ago _settings_template.php 11 years ago
_reimport_options.php
205 lines
1 <h4><?php _e('When WP All Import finds new or changed data...', 'pmxi_plugin'); ?></h4>
2 <div class="input">
3 <input type="hidden" name="create_new_records" value="0" />
4 <input type="checkbox" id="create_new_records" name="create_new_records" value="1" <?php echo $post['create_new_records'] ? 'checked="checked"' : '' ?> />
5 <label for="create_new_records"><?php _e('Create new posts from records newly present in your file', 'pmxi_plugin') ?></label>
6 </div>
7 <div class="switcher-target-auto_matching">
8 <div class="input">
9 <input type="hidden" name="is_delete_missing" value="0" />
10 <input type="checkbox" id="is_delete_missing" name="is_delete_missing" value="1" <?php echo $post['is_delete_missing'] ? 'checked="checked"': '' ?> class="switcher"/>
11 <label for="is_delete_missing"><?php _e('Delete posts that are no longer present in your file', 'pmxi_plugin') ?></label>
12 <!--a href="#help" class="wpallimport-help" title="<?php _e('Check this option if you want to delete posts from the previous import operation which are not found among newly imported set.', 'pmxi_plugin') ?>">?</a-->
13 </div>
14 <div class="switcher-target-is_delete_missing" style="padding-left:17px;">
15 <div class="input">
16 <input type="hidden" name="is_keep_attachments" value="0" />
17 <input type="checkbox" id="is_keep_attachments" name="is_keep_attachments" value="1" <?php echo $post['is_keep_attachments'] ? 'checked="checked"': '' ?> />
18 <label for="is_keep_attachments"><?php _e('Do not remove attachments', 'pmxi_plugin') ?></label>
19 </div>
20 <div class="input">
21 <input type="hidden" name="is_keep_imgs" value="0" />
22 <input type="checkbox" id="is_keep_imgs" name="is_keep_imgs" value="1" <?php echo $post['is_keep_imgs'] ? 'checked="checked"': '' ?> />
23 <label for="is_keep_imgs"><?php _e('Do not remove images', 'pmxi_plugin') ?></label>
24 </div>
25 <div class="input">
26 <input type="hidden" name="is_update_missing_cf" value="0" />
27 <input type="checkbox" id="is_update_missing_cf" name="is_update_missing_cf" value="1" <?php echo $post['is_update_missing_cf'] ? 'checked="checked"': '' ?> class="switcher"/>
28 <label for="is_update_missing_cf"><?php _e('Instead of deletion, set Custom Field', 'pmxi_plugin') ?></label>
29 <div class="switcher-target-is_update_missing_cf" style="padding-left:17px;">
30 <div class="input">
31 <?php _e('Name', 'pmxi_plugin') ?>
32 <input type="text" name="update_missing_cf_name" value="<?php echo esc_attr($post['update_missing_cf_name']) ?>" />
33 <?php _e('Value', 'pmxi_plugin') ?>
34 <input type="text" name="update_missing_cf_value" value="<?php echo esc_attr($post['update_missing_cf_value']) ?>" />
35 </div>
36 </div>
37 </div>
38 <div class="input">
39 <input type="hidden" name="set_missing_to_draft" value="0" />
40 <input type="checkbox" id="set_missing_to_draft" name="set_missing_to_draft" value="1" <?php echo $post['set_missing_to_draft'] ? 'checked="checked"': '' ?> />
41 <label for="set_missing_to_draft"><?php _e('Instead of deletion, change post status to Draft', 'pmxi_plugin') ?></label>
42 </div>
43 </div>
44 </div>
45 <div class="input">
46 <input type="hidden" id="is_keep_former_posts" name="is_keep_former_posts" value="yes" />
47 <input type="checkbox" id="is_not_keep_former_posts" name="is_keep_former_posts" value="no" <?php echo "yes" != $post['is_keep_former_posts'] ? 'checked="checked"': '' ?> class="switcher" />
48 <label for="is_not_keep_former_posts"><?php _e('Update existing posts with changed data in your file', 'pmxi_plugin') ?></label>
49
50 <div class="switcher-target-is_not_keep_former_posts" style="padding-left:17px;">
51 <input type="radio" id="update_all_data" class="switcher" name="update_all_data" value="yes" <?php echo 'no' != $post['update_all_data'] ? 'checked="checked"': '' ?>/>
52 <label for="update_all_data"><?php _e('Update all data', 'pmxi_plugin' )?></label><br>
53
54 <input type="radio" id="update_choosen_data" class="switcher" name="update_all_data" value="no" <?php echo 'no' == $post['update_all_data'] ? 'checked="checked"': '' ?>/>
55 <label for="update_choosen_data"><?php _e('Choose which data to update', 'pmxi_plugin' )?></label><br>
56 <div class="switcher-target-update_choosen_data" style="padding-left:17px;">
57 <div class="input">
58 <input type="hidden" name="is_update_status" value="0" />
59 <input type="checkbox" id="is_update_status" name="is_update_status" value="1" <?php echo $post['is_update_status'] ? 'checked="checked"': '' ?> />
60 <label for="is_update_status"><?php _e('Post status', 'pmxi_plugin') ?></label>
61 <a href="#help" class="wpallimport-help" style="position: relative; top: -2px;" title="<?php _e('Hint: uncheck this box to keep trashed posts in the trash.', 'pmxi_plugin') ?>">?</a>
62 </div>
63 <div class="input">
64 <input type="hidden" name="is_update_title" value="0" />
65 <input type="checkbox" id="is_update_title" name="is_update_title" value="1" <?php echo $post['is_update_title'] ? 'checked="checked"': '' ?> />
66 <label for="is_update_title"><?php _e('Title', 'pmxi_plugin') ?></label>
67 </div>
68 <div class="input">
69 <input type="hidden" name="is_update_author" value="0" />
70 <input type="checkbox" id="is_update_author" name="is_update_author" value="1" <?php echo $post['is_update_author'] ? 'checked="checked"': '' ?> />
71 <label for="is_update_author"><?php _e('Author', 'pmxi_plugin') ?></label>
72 </div>
73 <div class="input">
74 <input type="hidden" name="is_update_slug" value="0" />
75 <input type="checkbox" id="is_update_slug" name="is_update_slug" value="1" <?php echo $post['is_update_slug'] ? 'checked="checked"': '' ?> />
76 <label for="is_update_slug"><?php _e('Slug', 'pmxi_plugin') ?></label>
77 </div>
78 <div class="input">
79 <input type="hidden" name="is_update_content" value="0" />
80 <input type="checkbox" id="is_update_content" name="is_update_content" value="1" <?php echo $post['is_update_content'] ? 'checked="checked"': '' ?> />
81 <label for="is_update_content"><?php _e('Content', 'pmxi_plugin') ?></label>
82 </div>
83 <div class="input">
84 <input type="hidden" name="is_update_excerpt" value="0" />
85 <input type="checkbox" id="is_update_excerpt" name="is_update_excerpt" value="1" <?php echo $post['is_update_excerpt'] ? 'checked="checked"': '' ?> />
86 <label for="is_update_excerpt"><?php _e('Excerpt/Short Description', 'pmxi_plugin') ?></label>
87 </div>
88 <div class="input">
89 <input type="hidden" name="is_update_dates" value="0" />
90 <input type="checkbox" id="is_update_dates" name="is_update_dates" value="1" <?php echo $post['is_update_dates'] ? 'checked="checked"': '' ?> />
91 <label for="is_update_dates"><?php _e('Dates', 'pmxi_plugin') ?></label>
92 </div>
93 <div class="input">
94 <input type="hidden" name="is_update_menu_order" value="0" />
95 <input type="checkbox" id="is_update_menu_order" name="is_update_menu_order" value="1" <?php echo $post['is_update_menu_order'] ? 'checked="checked"': '' ?> />
96 <label for="is_update_menu_order"><?php _e('Menu order', 'pmxi_plugin') ?></label>
97 </div>
98 <div class="input">
99 <input type="hidden" name="is_update_parent" value="0" />
100 <input type="checkbox" id="is_update_parent" name="is_update_parent" value="1" <?php echo $post['is_update_parent'] ? 'checked="checked"': '' ?> />
101 <label for="is_update_parent"><?php _e('Parent post', 'pmxi_plugin') ?></label>
102 </div>
103 <div class="input">
104 <input type="hidden" name="is_update_attachments" value="0" />
105 <input type="checkbox" id="is_update_attachments" name="is_update_attachments" value="1" <?php echo $post['is_update_attachments'] ? 'checked="checked"': '' ?> />
106 <label for="is_update_attachments"><?php _e('Attachments', 'pmxi_plugin') ?></label>
107 </div>
108
109 <?php
110
111 // add-ons re-import options
112 do_action('pmxi_reimport', $post_type, $post);
113
114 ?>
115
116 <div class="input">
117 <input type="hidden" name="is_update_images" value="0" />
118 <input type="checkbox" id="is_update_images" name="is_update_images" value="1" <?php echo $post['is_update_images'] ? 'checked="checked"': '' ?> class="switcher" />
119 <label for="is_update_images"><?php _e('Images', 'pmxi_plugin') ?></label>
120 <!--a href="#help" class="wpallimport-help" title="<?php _e('This will keep the featured image if it exists, so you could modify the post image manually, and then do a reimport, and it would not overwrite the manually modified post image.', 'pmxi_plugin') ?>">?</a-->
121 <div class="switcher-target-is_update_images" style="padding-left:17px;">
122 <div class="input" style="margin-bottom:3px;">
123 <input type="radio" id="update_images_logic_full_update" name="update_images_logic" value="full_update" <?php echo ( "full_update" == $post['update_images_logic'] ) ? 'checked="checked"': '' ?> />
124 <label for="update_images_logic_full_update"><?php _e('Update all images', 'pmxi_plugin') ?></label>
125 </div>
126 <div class="input" style="margin-bottom:3px;">
127 <input type="radio" id="update_images_logic_add_new" name="update_images_logic" value="add_new" <?php echo ( "add_new" == $post['update_images_logic'] ) ? 'checked="checked"': '' ?> />
128 <label for="update_images_logic_add_new"><?php _e('Don\'t touch existing images, append new images', 'pmxi_plugin') ?></label>
129 </div>
130 </div>
131 </div>
132 <div class="input">
133 <input type="hidden" name="custom_fields_list" value="0" />
134 <input type="hidden" name="is_update_custom_fields" value="0" />
135 <input type="checkbox" id="is_update_custom_fields" name="is_update_custom_fields" value="1" <?php echo $post['is_update_custom_fields'] ? 'checked="checked"': '' ?> class="switcher"/>
136 <label for="is_update_custom_fields"><?php _e('Custom Fields', 'pmxi_plugin') ?></label>
137 <!--a href="#help" class="wpallimport-help" title="<?php _e('If Keep Custom Fields box is checked, it will keep all Custom Fields, and add any new Custom Fields specified in Custom Fields section, as long as they do not overwrite existing fields. If \'Only keep this Custom Fields\' is specified, it will only keep the specified fields.', 'pmxi_plugin') ?>">?</a-->
138 <div class="switcher-target-is_update_custom_fields" style="padding-left:17px;">
139 <div class="input">
140 <input type="radio" id="update_custom_fields_logic_full_update" name="update_custom_fields_logic" value="full_update" <?php echo ( "full_update" == $post['update_custom_fields_logic'] ) ? 'checked="checked"': '' ?> class="switcher"/>
141 <label for="update_custom_fields_logic_full_update"><?php _e('Update all Custom Fields', 'pmxi_plugin') ?></label>
142 </div>
143 <div class="input">
144 <input type="radio" id="update_custom_fields_logic_only" name="update_custom_fields_logic" value="only" <?php echo ( "only" == $post['update_custom_fields_logic'] ) ? 'checked="checked"': '' ?> class="switcher"/>
145 <label for="update_custom_fields_logic_only"><?php _e('Update only these Custom Fields, leave the rest alone', 'pmxi_plugin') ?></label>
146 <div class="switcher-target-update_custom_fields_logic_only pmxi_choosen" style="padding-left:17px;">
147 <span class="hidden choosen_values"><?php if (!empty($existing_meta_keys)) echo implode(',', $existing_meta_keys);?></span>
148 <input class="choosen_input" value="<?php if (!empty($post['custom_fields_list']) and "only" == $post['update_custom_fields_logic']) echo implode(',', $post['custom_fields_list']); ?>" type="hidden" name="custom_fields_only_list"/>
149 </div>
150 </div>
151 <div class="input">
152 <input type="radio" id="update_custom_fields_logic_all_except" name="update_custom_fields_logic" value="all_except" <?php echo ( "all_except" == $post['update_custom_fields_logic'] ) ? 'checked="checked"': '' ?> class="switcher"/>
153 <label for="update_custom_fields_logic_all_except"><?php _e('Leave these fields alone, update all other Custom Fields', 'pmxi_plugin') ?></label>
154 <div class="switcher-target-update_custom_fields_logic_all_except pmxi_choosen" style="padding-left:17px;">
155 <span class="hidden choosen_values"><?php if (!empty($existing_meta_keys)) echo implode(',', $existing_meta_keys);?></span>
156 <input class="choosen_input" value="<?php if (!empty($post['custom_fields_list']) and "all_except" == $post['update_custom_fields_logic']) echo implode(',', $post['custom_fields_list']); ?>" type="hidden" name="custom_fields_except_list"/>
157 </div>
158 </div>
159 </div>
160 </div>
161 <div class="input">
162 <input type="hidden" name="taxonomies_list" value="0" />
163 <input type="hidden" name="is_update_categories" value="0" />
164 <input type="checkbox" id="is_update_categories" name="is_update_categories" value="1" class="switcher" <?php echo $post['is_update_categories'] ? 'checked="checked"': '' ?> />
165 <label for="is_update_categories"><?php _e('Taxonomies (incl. Categories and Tags)', 'pmxi_plugin') ?></label>
166 <div class="switcher-target-is_update_categories" style="padding-left:17px;">
167 <?php
168 $existing_taxonomies = array();
169 $hide_taxonomies = (class_exists('PMWI_Plugin')) ? array('product_type') : array();
170 $post_taxonomies = array_diff_key(get_taxonomies_by_object_type(array($post_type), 'object'), array_flip($hide_taxonomies));
171 if (!empty($post_taxonomies)):
172 foreach ($post_taxonomies as $ctx): if ("" == $ctx->labels->name or (class_exists('PMWI_Plugin') and $post_type == "product" and strpos($ctx->name, "pa_") === 0)) continue;
173 $existing_taxonomies[] = $ctx->name;
174 endforeach;
175 endif;
176 ?>
177 <div class="input" style="margin-bottom:3px;">
178 <input type="radio" id="update_categories_logic_all_except" name="update_categories_logic" value="all_except" <?php echo ( "all_except" == $post['update_categories_logic'] ) ? 'checked="checked"': '' ?> class="switcher"/>
179 <label for="update_categories_logic_all_except"><?php _e('Leave these taxonomies alone, update all others', 'pmxi_plugin') ?></label>
180 <div class="switcher-target-update_categories_logic_all_except pmxi_choosen" style="padding-left:17px;">
181 <span class="hidden choosen_values"><?php if (!empty($existing_taxonomies)) echo implode(',', $existing_taxonomies);?></span>
182 <input class="choosen_input" value="<?php if (!empty($post['taxonomies_list']) and "all_except" == $post['update_categories_logic']) echo implode(',', $post['taxonomies_list']); ?>" type="hidden" name="taxonomies_except_list"/>
183 </div>
184 </div>
185 <div class="input" style="margin-bottom:3px;">
186 <input type="radio" id="update_categories_logic_only" name="update_categories_logic" value="only" <?php echo ( "only" == $post['update_categories_logic'] ) ? 'checked="checked"': '' ?> class="switcher"/>
187 <label for="update_categories_logic_only"><?php _e('Update only these taxonomies, leave the rest alone', 'pmxi_plugin') ?></label>
188 <div class="switcher-target-update_categories_logic_only pmxi_choosen" style="padding-left:17px;">
189 <span class="hidden choosen_values"><?php if (!empty($existing_taxonomies)) echo implode(',', $existing_taxonomies);?></span>
190 <input class="choosen_input" value="<?php if (!empty($post['taxonomies_list']) and "only" == $post['update_categories_logic']) echo implode(',', $post['taxonomies_list']); ?>" type="hidden" name="taxonomies_only_list"/>
191 </div>
192 </div>
193 <div class="input" style="margin-bottom:3px;">
194 <input type="radio" id="update_categories_logic_full_update" name="update_categories_logic" value="full_update" <?php echo ( "full_update" == $post['update_categories_logic'] ) ? 'checked="checked"': '' ?> class="switcher"/>
195 <label for="update_categories_logic_full_update"><?php _e('Remove existing taxonomies, add new taxonomies', 'pmxi_plugin') ?></label>
196 </div>
197 <div class="input" style="margin-bottom:3px;">
198 <input type="radio" id="update_categories_logic_add_new" name="update_categories_logic" value="add_new" <?php echo ( "add_new" == $post['update_categories_logic'] ) ? 'checked="checked"': '' ?> class="switcher"/>
199 <label for="update_categories_logic_add_new"><?php _e('Only add new', 'pmxi_plugin') ?></label>
200 </div>
201 </div>
202 </div>
203 </div>
204 </div>
205 </div>