PluginProbe ʕ •ᴥ•ʔ
WP All Export – Drag & Drop Export to Any Custom CSV, XML & Excel / trunk
WP All Export – Drag & Drop Export to Any Custom CSV, XML & Excel vtrunk
trunk 0.9.0 0.9.1 1.0.0 1.0.1 1.0.2 1.0.3 1.0.4 1.0.5 1.0.6 1.0.7 1.0.8 1.0.9 1.1.0 1.1.1 1.1.2 1.1.3 1.1.4 1.1.5 1.2.0 1.2.1 1.2.10 1.2.2 1.2.3 1.2.4 1.2.5 1.2.6 1.2.7 1.2.8 1.2.9 1.3.0 1.3.1 1.3.2 1.3.3 1.3.4 1.3.5 1.3.6 1.3.7 1.3.8 1.3.9 1.4.0 1.4.1 1.4.10 1.4.11 1.4.12 1.4.13 1.4.14 1.4.15 1.4.2 1.4.3 1.4.4 1.4.5 1.4.6 1.4.7 1.4.8 1.4.9 1.5.0
wp-all-export / views / admin / export / template / advanced_field_options.php
wp-all-export / views / admin / export / template Last commit date
add_new_field.php 1 month ago advanced_field_options.php 1 month ago custom_xml_help.php 1 month ago functions_editor.php 1 month ago
advanced_field_options.php
77 lines
1 <?php // phpcs:ignoreFile WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound -- variables in template files inherited from controller render() scope ?>
2 <?php defined( 'ABSPATH' ) || exit; ?>
3 <div class="wp-all-export-advanced-field-options-content">
4 <!-- Options for SQL field -->
5 <div class="input cc_field sql_field_type" style="margin-left:25px;">
6 <a href="#help" rel="sql" class="help" style="display:none;" title="<?php esc_html_e('%%ID%% will be replaced with the ID of the post being exported, example: SELECT meta_value FROM wp_postmeta WHERE post_id=%%ID%% AND meta_key=\'your_meta_key\';', 'wp-all-export'); ?>">?</a>
7 <textarea style="width:100%;" rows="5" class="column_value"></textarea>
8 </div>
9 <!-- Options for ACF Repeater field -->
10 <div class="input cc_field repeater_field_type" style="margin-left:25px;">
11 <input type="hidden" name="repeater_field_item_per_line" value="0"/>
12 <input type="checkbox" id="repeater_field_item_per_line" class="switcher" name="repeater_field_item_per_line" value="1" style="margin: 2px;"/>
13 <label for="repeater_field_item_per_line"><?php esc_html_e("Display each repeater row in its own csv line", "wp-all-export"); ?></label>
14 <div class="input switcher-target-repeater_field_item_per_line" style="margin-top: 10px; padding-left: 15px;">
15 <input type="hidden" name="repeater_field_fill_empty_columns" value="0"/>
16 <input type="checkbox" id="repeater_field_fill_empty_columns" name="repeater_field_fill_empty_columns" value="1"/>
17 <label for="repeater_field_fill_empty_columns"><?php esc_html_e("Fill in empty columns", "wp-all-export"); ?></label>
18 <a href="#help" class="wpallexport-help" style="position: relative; top: 0px;" title="<?php esc_html_e('If enabled, each repeater row will appear as its own csv line with all post info filled in for every column.', 'wp-all-export'); ?>">?</a>
19 </div>
20 </div>
21 <!-- Options for Image field from Media section -->
22 <div class="input cc_field image_field_type" style="margin-left:25px;">
23 <div class="input">
24 <input type="hidden" name="image_field_is_export_featured" value="0"/>
25 <input type="checkbox" id="is_image_export_featured" name="image_field_is_export_featured" value="1" style="margin: 2px;" checked="checked"/>
26 <label for="is_image_export_featured"><?php esc_html_e("Export featured image", "wp-all-export"); ?></label>
27 </div>
28 <div class="input">
29 <input type="hidden" name="image_field_is_export_attached_images" value="0"/>
30 <input type="checkbox" id="is_image_export_attached_images" class="switcher" name="image_field_is_export_attached_images" value="1" style="margin: 2px;" checked="checked"/>
31 <label for="is_image_export_attached_images"><?php esc_html_e("Export attached images", "wp-all-export"); ?></label>
32 <div class="switcher-target-is_image_export_attached_images" style="margin: 5px 2px;">
33 <label><?php esc_html_e("Separator", "wp-all-export"); ?></label>
34 <input type="text" name="image_field_separator" value="|" style="width: 40px; text-align:center;">
35 </div>
36 </div>
37 </div>
38
39 <!-- Options for Date field -->
40 <div class="input cc_field wpae-select-field date_field_type" style="margin-left:25px;">
41 <select class="date_field_export_data" style="width: 100%;">
42 <option value="unix"><?php esc_html_e("UNIX timestamp - PHP time()", "wp-all-export");?></option>
43 <option value="php"><?php esc_html_e("Natural Language PHP date()", "wp-all-export");?></option>
44 </select>
45 <div class="input pmxe_date_format_wrapper">
46 <label style="padding:4px; display: block;"><?php esc_html_e("date() Format", "wp-all-export"); ?></label>
47 <input type="text" class="pmxe_date_format" value="" placeholder="Y-m-d"/>
48 </div>
49 </div>
50 <!-- Options for Up/Cross sells products -->
51 <div class="input cc_field linked_field_type" style="margin-left:25px;">
52 <select class="linked_field_export_data" style="width: 100%; height: 30px;">
53 <option value="sku"><?php esc_html_e("Product SKU", "wp-all-export");?></option>
54 <option value="id"><?php esc_html_e("Product ID", "wp-all-export");?></option>
55 <option value="name"><?php esc_html_e("Product Name", "wp-all-export");?></option>
56 </select>
57 </div>
58 <!-- PHP snippet options -->
59 <div class="input php_snipped" style="margin-top:0;margin-left:24px;">
60 <input type="checkbox" id="coperate_php" name="coperate_php" value="1" class="switcher" style="margin: 2px;"/>
61 <label for="coperate_php"><?php esc_html_e("Export the value returned by a PHP function", "wp-all-export"); ?></label>
62 <a href="#help" class="wpallexport-help" title="<?php esc_html_e('The value of the field chosen for export will be passed to the PHP function.', 'wp-all-export'); ?>" style="top: 0;">?</a>
63 <div class="switcher-target-coperate_php" style="margin-top:5px;">
64 <div class="wpallexport-free-edition-notice" style="margin: 15px 0;">
65 <a class="upgrade_link" target="_blank" href="https://www.wpallimport.com/checkout/?edd_action=add_to_cart&download_id=5839967&discount=welcome-upgrade-99&edd_options%5Bprice_id%5D=1&utm_source=export-plugin-free&utm_medium=upgrade-notice&utm_campaign=custom-php"><?php esc_html_e('Upgrade to Pro to use Custom PHP Functions','wp-all-export');?></a>
66 </div>
67 <?php echo "&lt;?php ";?>
68 <input type="text" class="php_code" value="" style="width:50%;" placeholder='your_function_name'/>
69 <?php echo "(\$value); ?&gt;"; ?>
70
71 <?php
72 $uploads = wp_upload_dir();
73 $functions = $uploads['basedir'] . DIRECTORY_SEPARATOR . WP_ALL_EXPORT_UPLOADS_BASE_DIRECTORY . DIRECTORY_SEPARATOR . 'functions.php';
74 ?>
75 </div>
76 </div>
77 </div>