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 / _settings_template.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
_settings_template.php
132 lines
1 <div class="wpallimport-collapsed closed wpallimport-section">
2 <div class="wpallimport-content-section">
3 <div class="wpallimport-collapsed-header">
4 <h3><?php _e('Configure Advanced Settings','pmxi_plugin');?></h3>
5 </div>
6 <div class="wpallimport-collapsed-content" style="padding: 0;">
7 <div class="wpallimport-collapsed-content-inner">
8 <table class="form-table" style="max-width:none;">
9 <tr>
10 <td colspan="3">
11 <h4><?php _e('Import Speed Optimization', 'pmxi_plugin'); ?></h4>
12 <div class="input">
13 <div class="input">
14 <input type="radio" id="import_default_processing" class="switcher" name="import_processing" value="default" <?php echo ('ajax' != $post['import_processing']) ? 'checked="checked"': '' ?> style="margin-left:0;"/>
15 <label for="import_default_processing"><?php _e('High Speed Small File Processing', 'pmxi_plugin' )?> <a href="#help" class="wpallimport-help" style="position:relative; top:0;" title="<?php _e('If the import takes longer than your server\'s timeout settings (max_execution_time, mod_fcgid read data timeout, etc.) it will fail.', 'pmxi_plugin'); ?>">?</a></label>
16 </div>
17
18 <input type="radio" id="import_ajax_processing" class="switcher" name="import_processing" value="ajax" <?php echo 'ajax' == $post['import_processing'] ? 'checked="checked"': '' ?> style="margin-left:0;"/>
19 <label for="import_ajax_processing"><?php _e('Iterative, Piece-by-Piece Processing', 'pmxi_plugin' )?></label>
20
21 <span class="switcher-target-import_ajax_processing pl17" style="display:block; clear: both; width: 100%;">
22 <div class="pl17" style="margin:5px 0px;">
23 <label for="records_per_request"><?php _e('In each iteration, process', 'pmxi_plugin');?></label> <input type="text" name="records_per_request" style="vertical-align:middle; font-size:11px; background:#fff !important; width: 40px; text-align:center;" value="<?php echo esc_attr($post['records_per_request']) ?>" /> <?php _e('records', 'pmxi_plugin'); ?>
24 <a href="#help" class="wpallimport-help" style="position: relative; top: -2px;" title="<?php _e('WP All Import must be able to process this many records in less than your server\'s timeout settings. If your import fails before completion, to troubleshoot you should lower this number. If you are importing images, especially high resolution images, high numbers here are probably a bad idea, since downloading the images can take lots of time - for example, 20 posts with 5 images each = 100 images. At 500Kb per image that\'s 50Mb that needs to be downloaded. Can your server download that before timing out? If not, the import will fail.', 'pmxi_plugin'); ?>">?</a>
25 </div>
26 <div class="input pl17" style="margin:5px 0px;">
27 <input type="hidden" name="chuncking" value="0" />
28 <input type="checkbox" id="chuncking" name="chuncking" value="1" class="fix_checkbox" <?php echo $post['chuncking'] ? 'checked="checked"': '' ?>/>
29 <label for="chuncking"><?php _e('Split file up into <strong>' . PMXI_Plugin::getInstance()->getOption('large_feed_limit') . '</strong> record chunks.', 'pmxi_plugin');?></label>
30 <a href="#help" class="wpallimport-help" style="position: relative; top: -2px;" title="<?php _e('This option will decrease the amount of slowdown experienced at the end of large imports. The slowdown is partially caused by the need for WP All Import to read deeper and deeper into the file on each successive iteration. Splitting the file into pieces means that, for example, instead of having to read 19000 records into a 20000 record file when importing the last 1000 records, WP All Import will just split it into 20 chunks, and then read the last chunk from the beginning.','pmxi_plugin'); ?>">?</a>
31 </div>
32 </span>
33 </div>
34 <div class="input">
35 <input type="hidden" name="is_fast_mode" value="0" />
36 <input type="checkbox" id="is_fast_mode" name="is_fast_mode" value="1" class="fix_checkbox" <?php echo $post['is_fast_mode'] ? 'checked="checked"': '' ?>/>
37 <label for="is_fast_mode"><?php _e('Increase speed by disabling do_action calls in wp_insert_post during import.', 'pmxi_plugin') ?> <a href="#help" class="wpallimport-help" style="position: relative; top: -2px;" title="<?php _e('This option is for advanced users with knowledge of WordPress development. Your theme or plugins may require these calls when posts are created. Verify your created posts work properly if you check this box.', 'pmxi_plugin') ?>">?</a></label>
38 </div>
39 <?php if ( ! $this->isWizard ): ?>
40
41 <h4><?php _e('Post Type', 'pmxi_plugin'); ?></h4>
42 <p><?php _e('Editing this will change the post type of the posts processed by this import. Re-run the import for the changes to take effect.', 'pmxi_plugin');?></p> <br>
43
44
45 <input type="hidden" name="custom_type" value="<?php echo $post['custom_type'];?>">
46
47 <?php
48
49 $custom_types = get_post_types(array('_builtin' => true), 'objects') + get_post_types(array('_builtin' => false, 'show_ui' => true), 'objects');
50 foreach ($custom_types as $key => $ct) {
51 if (in_array($key, array('attachment', 'revision', 'nav_menu_item'))) unset($custom_types[$key]);
52 }
53 $custom_types = apply_filters( 'pmxi_custom_types', $custom_types );
54
55 $hidden_post_types = get_post_types(array('_builtin' => false, 'show_ui' => false), 'objects');
56 foreach ($hidden_post_types as $key => $ct) {
57 if (in_array($key, array('attachment', 'revision', 'nav_menu_item'))) unset($hidden_post_types[$key]);
58 }
59 $hidden_post_types = apply_filters( 'pmxi_custom_types', $hidden_post_types );
60
61 ?>
62 <div class="wpallimport-change-custom-type">
63 <select name="custom_type_selector" id="custom_type_selector" class="wpallimport-post-types">
64 <?php if ( ! empty($custom_types)): ?>
65 <?php foreach ($custom_types as $key => $cpt) :?>
66 <?php
67 $image_src = 'dashicon-cpt';
68 if ( in_array($key, array('post', 'page', 'product') ) )
69 $image_src = 'dashicon-' . $key;
70 ?>
71 <option value="<?php echo $key; ?>" data-imagesrc="dashicon <?php echo $image_src; ?>" <?php if ( $key == $post['custom_type'] ) echo 'selected="selected"';?>><?php echo $cpt->labels->name; ?></option>
72 <?php endforeach; ?>
73 <?php endif; ?>
74 <?php if ( ! empty($hidden_post_types)): ?>
75 <?php foreach ($hidden_post_types as $key => $cpt) :?>
76 <?php
77 $image_src = 'dashicon-cpt';
78 if ( in_array($key, array('post', 'page', 'product') ) )
79 $image_src = 'dashicon-' . $key;
80 ?>
81 <option value="<?php echo $key; ?>" data-imagesrc="dashicon <?php echo $image_src; ?>" <?php if ( $key == $post['custom_type'] ) echo 'selected="selected"';?>><?php echo $cpt->labels->name; ?></option>
82 <?php endforeach; ?>
83 <?php endif; ?>
84 </select>
85 </div>
86
87 <h4><?php _e('XPath', 'pmxi_plugin'); ?></h4>
88 <p><?php _e('Editing this can break your entire import. You will have to re-create it from scratch.', 'pmxi_plugin');?></p> <br>
89 <div class="input">
90 <input type="text" name="xpath" value="<?php echo esc_attr($import->xpath) ?>" style="width: 50%; font-size: 18px; color: #555; height: 50px; padding: 10px;"/>
91 </div>
92
93 <?php endif; ?>
94 <h4><?php _e('Other', 'pmxi_plugin'); ?></h4>
95 <div class="input">
96 <input type="hidden" name="is_import_specified" value="0" />
97 <input type="checkbox" id="is_import_specified" class="switcher fix_checkbox" name="is_import_specified" value="1" <?php echo $post['is_import_specified'] ? 'checked="checked"': '' ?>/>
98 <label for="is_import_specified"><?php _e('Import only specified records', 'pmxi_plugin') ?> <a href="#help" class="wpallimport-help" style="position:relative; top:0;" title="<?php _e('Enter records or record ranges separated by commas, e.g. <b>1,5,7-10</b> would import the first, the fifth, and the seventh to tenth.', 'pmxi_plugin') ?>">?</a></label>
99 <div class="switcher-target-is_import_specified" style="vertical-align:middle">
100 <div class="input" style="display:inline;">
101 <input type="text" name="import_specified" value="<?php echo esc_attr($post['import_specified']) ?>" style="width:320px;"/>
102 </div>
103 </div>
104 </div>
105 <?php if (isset($source_type) and in_array($source_type, array('ftp', 'file'))): ?>
106 <div class="input">
107 <input type="hidden" name="is_delete_source" value="0" />
108 <input type="checkbox" id="is_delete_source" class="fix_checkbox" name="is_delete_source" value="1" <?php echo $post['is_delete_source'] ? 'checked="checked"': '' ?>/>
109 <label for="is_delete_source"><?php _e('Delete source XML file after importing', 'pmxi_plugin') ?> <a href="#help" class="wpallimport-help" style="position:relative; top:0;" title="<?php _e('This setting takes effect only when script has access rights to perform the action, e.g. file is not deleted when pulled via HTTP or delete permission is not granted to the user that script is executed under.', 'pmxi_plugin') ?>">?</a></label>
110 </div>
111 <?php endif; ?>
112 <?php if (class_exists('PMLC_Plugin')): // option is only valid when `WP Wizard Cloak` pluign is enabled ?>
113 <div class="input">
114 <input type="hidden" name="is_cloak" value="0" />
115 <input type="checkbox" id="is_cloak" class="fix_checkbox" name="is_cloak" value="1" <?php echo $post['is_cloak'] ? 'checked="checked"': '' ?>/>
116 <label for="is_cloak"><?php _e('Auto-Cloak Links', 'pmxi_plugin') ?> <a href="#help" class="wpallimport-help" style="position:relative; top:0;" title="<?php printf(__('Automatically process all links present in body of created post or page with <b>%s</b> plugin', 'pmxi_plugin'), PMLC_Plugin::getInstance()->getName()) ?>">?</a></label>
117 </div>
118 <?php endif; ?>
119
120 <div class="input" style="margin-top: 15px;">
121 <p><?php _e('Friendly Name','pmxi_plugin');?></p> <br>
122 <div class="input">
123 <input type="text" name="friendly_name" style="vertical-align:middle; background:#fff !important; width: 50%;" value="<?php echo esc_attr($post['friendly_name']) ?>" />
124 </div>
125 </div>
126 </td>
127 </tr>
128 </table>
129 </div>
130 </div>
131 </div>
132 </div>