Export WordPress data to XML/CSV - Version 1.2.4

Version Description

  • improvement: add support for User Export Add-On
  • improvement: better local timezone detection for Automatic Scheduling
  • improvement: more consistent "Add New Field" user interface
  • bugfix: ACF repeater fields broken in ACF 5.7.10+
  • bugfix: when using migrate posts, only the image fields are added to the import template
Download this release

Release Info

Developer soflyy
Plugin Icon 128x128 Export WordPress data to XML/CSV
Version 1.2.4
Comparing to
See all releases

Code changes from version 1.2.3 to 1.2.4

Files changed (121) hide show
  1. actions/admin_init.php +0 -0
  2. actions/admin_menu.php +0 -0
  3. actions/admin_notices.php +0 -0
  4. actions/wp_ajax_scheduling_dialog_content.php +13 -3
  5. actions/wp_ajax_wpae_filtering.php +9 -2
  6. actions/wp_loaded.php +0 -0
  7. classes/config.php +0 -0
  8. classes/download.php +0 -0
  9. classes/helper.php +0 -0
  10. classes/input.php +0 -0
  11. classes/session.php +0 -0
  12. classes/wpallimport.php +6 -3
  13. config/options.php +1 -1
  14. controllers/admin/export.php +0 -0
  15. controllers/admin/help.php +0 -0
  16. controllers/admin/settings.php +0 -0
  17. controllers/controller.php +0 -0
  18. controllers/controller/admin.php +0 -0
  19. filters/pmxe_csv_value.php +6 -0
  20. helpers/backward.php +0 -0
  21. helpers/pmxe_functions.php +5 -12
  22. helpers/str_getcsv.php +0 -0
  23. helpers/wp_all_export_pre_user_query.php +29 -0
  24. helpers/wp_all_export_prepare_template_csv.php +2 -2
  25. helpers/wp_all_export_prepare_template_xml.php +1 -1
  26. helpers/wp_redirect_or_javascript.php +0 -0
  27. libraries/XmlCsvExport.php +105 -108
  28. libraries/XmlExportACF.php +9 -3
  29. libraries/XmlExportEngine.php +46 -15
  30. libraries/XmlExportMediaGallery.php +3 -1
  31. libraries/XmlExportWooCommerceOrder.php +1 -1
  32. models/export/list.php +0 -0
  33. models/export/record.php +0 -0
  34. models/model.php +0 -0
  35. models/model/list.php +0 -0
  36. models/model/record.php +0 -0
  37. readme.txt +17 -7
  38. schema.php +2 -2
  39. src/App/Service/Addons/AddonNotFoundException.php +11 -0
  40. src/App/Service/Addons/AddonService.php +37 -0
  41. src/App/UnsecuredController/SchedulingController.php +30 -2
  42. src/Csv/CsvWriter.php +2 -0
  43. src/Scheduling/views/ConnectionIcon.php +3 -3
  44. src/Scheduling/views/ManualScheduling.php +2 -3
  45. src/Scheduling/views/SchedulingOptions.php +13 -3
  46. src/Scheduling/views/SchedulingUI.php +13 -3
  47. static/css/admin-ie.css +0 -0
  48. static/css/admin-wp-3.8.css +0 -0
  49. static/css/admin.css +24 -1
  50. static/img/date-picker.gif +0 -0
  51. static/img/down.gif +0 -0
  52. static/img/drag.png +0 -0
  53. static/img/ico-add-new.png +0 -0
  54. static/img/ico-remove.png +0 -0
  55. static/img/loading.png +0 -0
  56. static/img/progress_animated.gif +0 -0
  57. static/img/screen-options-right-up.gif +0 -0
  58. static/img/screen-options-right.gif +0 -0
  59. static/img/stars.png +0 -0
  60. static/js/admin.js +11 -4
  61. static/js/jquery/css/redmond/images/animated-overlay.gif +0 -0
  62. static/js/jquery/css/redmond/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
  63. static/js/jquery/css/redmond/images/ui-bg_flat_0_aaaaaa_40x100_1.png +0 -0
  64. static/js/jquery/css/redmond/images/ui-bg_flat_55_fbec88_40x100.png +0 -0
  65. static/js/jquery/css/redmond/images/ui-bg_glass_75_d0e5f5_1x400.png +0 -0
  66. static/js/jquery/css/redmond/images/ui-bg_glass_85_dfeffc_1x400.png +0 -0
  67. static/js/jquery/css/redmond/images/ui-bg_glass_95_fef1ec_1x400.png +0 -0
  68. static/js/jquery/css/redmond/images/ui-bg_gloss-wave_55_5c9ccc_500x100.png +0 -0
  69. static/js/jquery/css/redmond/images/ui-bg_inset-hard_100_f5f8f9_1x100.png +0 -0
  70. static/js/jquery/css/redmond/images/ui-bg_inset-hard_100_fcfdfd_1x100.png +0 -0
  71. static/js/jquery/css/redmond/images/ui-icons_217bc0_256x240.png +0 -0
  72. static/js/jquery/css/redmond/images/ui-icons_2e83ff_256x240.png +0 -0
  73. static/js/jquery/css/redmond/images/ui-icons_469bdd_256x240.png +0 -0
  74. static/js/jquery/css/redmond/images/ui-icons_6da8d5_256x240.png +0 -0
  75. static/js/jquery/css/redmond/images/ui-icons_cd0a0a_256x240.png +0 -0
  76. static/js/jquery/css/redmond/images/ui-icons_d8e7f3_256x240.png +0 -0
  77. static/js/jquery/css/redmond/images/ui-icons_f9bd01_256x240.png +0 -0
  78. static/js/jquery/css/redmond/jquery-ui.css +0 -0
  79. static/js/jquery/css/select2/select2-bootstrap.css +0 -0
  80. static/js/jquery/css/select2/select2-spinner.gif +0 -0
  81. static/js/jquery/css/select2/select2.css +0 -0
  82. static/js/jquery/css/select2/select2.png +0 -0
  83. static/js/jquery/css/smoothness/images/tipsy.gif +0 -0
  84. static/js/jquery/css/smoothness/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
  85. static/js/jquery/css/smoothness/images/ui-bg_flat_75_ffffff_40x100.png +0 -0
  86. static/js/jquery/css/smoothness/images/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
  87. static/js/jquery/css/smoothness/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
  88. static/js/jquery/css/smoothness/images/ui-bg_glass_75_dadada_1x400.png +0 -0
  89. static/js/jquery/css/smoothness/images/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
  90. static/js/jquery/css/smoothness/images/ui-bg_glass_95_fef1ec_1x400.png +0 -0
  91. static/js/jquery/css/smoothness/images/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
  92. static/js/jquery/css/smoothness/images/ui-icons_222222_256x240.png +0 -0
  93. static/js/jquery/css/smoothness/images/ui-icons_2e83ff_256x240.png +0 -0
  94. static/js/jquery/css/smoothness/images/ui-icons_454545_256x240.png +0 -0
  95. static/js/jquery/css/smoothness/images/ui-icons_888888_256x240.png +0 -0
  96. static/js/jquery/css/smoothness/images/ui-icons_cd0a0a_256x240.png +0 -0
  97. static/js/jquery/css/smoothness/jquery-ui.css +0 -0
  98. static/js/jquery/css/smoothness/jquery.tipsy.css +0 -0
  99. static/js/jquery/jquery.tipsy.js +0 -0
  100. static/js/jquery/select2.min.js +0 -0
  101. static/js/jquery/ui.autocomplete.js +0 -0
  102. static/js/jquery/ui.datepicker.js +0 -0
  103. static/js/pmxe.js +0 -0
  104. views/admin/export/blocks/filters.php +1 -1
  105. views/admin/export/index.php +10 -7
  106. views/admin/export/options.php +3 -2
  107. views/admin/export/process.php +2 -2
  108. views/admin/export/success_page.php +2 -2
  109. views/admin/export/template.php +9 -8
  110. views/admin/export/template/add_new_field.php +1 -1
  111. views/admin/export/template/advanced_field_options.php +10 -9
  112. views/admin/export/template/functions_editor.php +1 -1
  113. views/admin/feedback/index.php +1 -1
  114. views/admin/google/indexbck.php +1 -1
  115. views/admin/help/index.php +2 -2
  116. views/admin/manage/index.php +18 -1
  117. views/admin/manage/scheduling.php +1 -1
  118. views/admin/manage/update.php +4 -3
  119. views/admin/settings/index.php +3 -3
  120. views/controller/error.php +0 -0
  121. wp-all-export.php +33 -10
actions/admin_init.php CHANGED
File without changes
actions/admin_menu.php CHANGED
File without changes
actions/admin_notices.php CHANGED
File without changes
actions/wp_ajax_scheduling_dialog_content.php CHANGED
@@ -494,8 +494,18 @@ function pmxe_wp_ajax_scheduling_dialog_content()
494
  ?>
495
  var timeZone = Intl.DateTimeFormat().resolvedOptions().timeZone;
496
 
497
- $('#timezone').val(timeZone);
498
- $('#timezone').trigger("chosen:updated");
 
 
 
 
 
 
 
 
 
 
499
 
500
  <?php
501
  }
@@ -787,7 +797,7 @@ function pmxe_wp_ajax_scheduling_dialog_content()
787
  style="margin-left: 5px; margin-top: 65px; margin-bottom: 130px; position: relative;">
788
  <div class="button-container">
789
 
790
- <a href="https://www.wpallimport.com/checkout/?edd_action=add_to_cart&download_id=515704"
791
  target="_blank" id="subscribe-button">
792
  <div class="button button-primary button-hero wpallexport-large-button button-subscribe"
793
  style="background-image: none; width: 140px; text-align: center; position: absolute; z-index: 4;">
494
  ?>
495
  var timeZone = Intl.DateTimeFormat().resolvedOptions().timeZone;
496
 
497
+ if($('#timezone').find("option:contains('"+ timeZone +"')").length != 0){
498
+ $('#timezone').trigger("chosen:updated");
499
+ $('#timezone').val(timeZone);
500
+ $('#timezone').trigger("chosen:updated");
501
+ }else{
502
+ var parts = timeZone.split('/');
503
+ var lastPart = parts[parts.length-1];
504
+ var opt = $('#timezone').find("option:contains('"+ lastPart +"')");
505
+
506
+ $('#timezone').val(opt.val());
507
+ $('#timezone').trigger("chosen:updated");
508
+ }
509
 
510
  <?php
511
  }
797
  style="margin-left: 5px; margin-top: 65px; margin-bottom: 130px; position: relative;">
798
  <div class="button-container">
799
 
800
+ <a href="https://www.wpallimport.com/checkout/?edd_action=add_to_cart&download_id=515704&utm_source=export-plugin-free&utm_medium=upgrade-notice&utm_campaign=automatic-scheduling"
801
  target="_blank" id="subscribe-button">
802
  <div class="button button-primary button-hero wpallexport-large-button button-subscribe"
803
  style="background-image: none; width: 140px; text-align: center; position: absolute; z-index: 4;">
actions/wp_ajax_wpae_filtering.php CHANGED
@@ -10,6 +10,7 @@ function pmxe_wp_ajax_wpae_filtering(){
10
  exit( json_encode(array('html' => __('Security check', 'wp_all_export_plugin'))) );
11
  }
12
 
 
13
  $response = array(
14
  'html' => '',
15
  'btns' => ''
@@ -45,7 +46,7 @@ function pmxe_wp_ajax_wpae_filtering(){
45
 
46
  $response['html'] = ob_get_clean();
47
 
48
- if ( XmlExportEngine::$is_user_export || XmlExportEngine::$is_comment_export || XmlExportEngine::$is_taxonomy_export )
49
  {
50
  $response['btns'] = '';
51
  exit(json_encode($response)); die;
@@ -56,9 +57,15 @@ function pmxe_wp_ajax_wpae_filtering(){
56
  if ( XmlExportEngine::$is_auto_generate_enabled ):
57
  ?>
58
  <div class="wpallexport-free-edition-notice" id="migrate-orders-notice" style="padding: 20px; margin-bottom: 10px; display: none;">
59
- <a class="upgrade_link" target="_blank" href="https://www.wpallimport.com/checkout/?edd_action=add_to_cart&download_id=118611&edd_options%5Bprice_id%5D=1&utm_source=wordpress.org&utm_medium=migrate+orders&utm_campaign=free+wp+all+export+plugin"><?php _e('Upgrade to the Pro edition of WP All Export to Migrate Orders', PMXE_Plugin::LANGUAGE_DOMAIN);?></a>
60
  <p><?php _e('If you already own it, remove the free edition and install the Pro edition.', PMXE_Plugin::LANGUAGE_DOMAIN);?></p>
61
  </div>
 
 
 
 
 
 
62
  <?php if(isset($post['cpt'])) { ?>
63
  <span class="wp_all_export_btn_with_note">
64
  <a href="javascript:void(0);" class="back rad3 auto-generate-template" style="float:none; background: #425f9a; padding: 0 50px; margin-right: 10px; color: #fff; font-weight: normal;"><?php printf(__('Migrate %s', 'wp_all_export_plugin'), wp_all_export_get_cpt_name(array($post['cpt']), 2, $post)); ?></a>
10
  exit( json_encode(array('html' => __('Security check', 'wp_all_export_plugin'))) );
11
  }
12
 
13
+ $addons = new \Wpae\App\Service\Addons\AddonService();
14
  $response = array(
15
  'html' => '',
16
  'btns' => ''
46
 
47
  $response['html'] = ob_get_clean();
48
 
49
+ if ( (XmlExportEngine::$is_user_export && $post['cpt'] != 'shop_customer' && !$addons->isUserAddonActive()) || XmlExportEngine::$is_comment_export || XmlExportEngine::$is_taxonomy_export || $post['cpt'] == 'shop_customer' )
50
  {
51
  $response['btns'] = '';
52
  exit(json_encode($response)); die;
57
  if ( XmlExportEngine::$is_auto_generate_enabled ):
58
  ?>
59
  <div class="wpallexport-free-edition-notice" id="migrate-orders-notice" style="padding: 20px; margin-bottom: 10px; display: none;">
60
+ <a class="upgrade_link" target="_blank" href="https://www.wpallimport.com/checkout/?edd_action=add_to_cart&download_id=118611&edd_options%5Bprice_id%5D=1&utm_source=export-plugin-free&utm_medium=upgrade-notice&utm_campaign=migrate-orders"><?php _e('Upgrade to the Pro edition of WP All Export to Migrate Orders', PMXE_Plugin::LANGUAGE_DOMAIN);?></a>
61
  <p><?php _e('If you already own it, remove the free edition and install the Pro edition.', PMXE_Plugin::LANGUAGE_DOMAIN);?></p>
62
  </div>
63
+
64
+ <div class="wpallexport-free-edition-notice" id="migrate-users-notice" style="padding: 20px; margin-bottom: 10px; display: none;">
65
+ <a class="upgrade_link" target="_blank" href="https://www.wpallimport.com/checkout/?edd_action=add_to_cart&download_id=118611&edd_options%5Bprice_id%5D=1&utm_source=export-plugin-free&utm_medium=upgrade-notice&utm_campaign=migrate-users"><?php _e('Upgrade to the Pro edition of WP All Export to Migrate Users', PMXE_Plugin::LANGUAGE_DOMAIN);?></a>
66
+ <p><?php _e('If you already own it, remove the free edition and install the Pro edition.', PMXE_Plugin::LANGUAGE_DOMAIN);?></p>
67
+ </div>
68
+
69
  <?php if(isset($post['cpt'])) { ?>
70
  <span class="wp_all_export_btn_with_note">
71
  <a href="javascript:void(0);" class="back rad3 auto-generate-template" style="float:none; background: #425f9a; padding: 0 50px; margin-right: 10px; color: #fff; font-weight: normal;"><?php printf(__('Migrate %s', 'wp_all_export_plugin'), wp_all_export_get_cpt_name(array($post['cpt']), 2, $post)); ?></a>
actions/wp_loaded.php CHANGED
File without changes
classes/config.php CHANGED
File without changes
classes/download.php CHANGED
File without changes
classes/helper.php CHANGED
File without changes
classes/input.php CHANGED
File without changes
classes/session.php CHANGED
File without changes
classes/wpallimport.php CHANGED
@@ -499,7 +499,7 @@ final class PMXE_Wpallimport
499
  $required_add_ons['PMWI_Plugin'] = array(
500
  'name' => 'WooCommerce Add-On Pro',
501
  'paid' => true,
502
- 'url' => 'http://www.wpallimport.com/woocommerce-product-import/'
503
  );
504
  }
505
 
@@ -515,7 +515,7 @@ final class PMXE_Wpallimport
515
  $required_add_ons['PMAI_Plugin'] = array(
516
  'name' => 'ACF Add-On Pro',
517
  'paid' => true,
518
- 'url' => 'http://www.wpallimport.com/advanced-custom-fields/?utm_source=wordpress.org&utm_medium=wpai-import-template&utm_campaign=free+wp+all+export+plugin'
519
  );
520
  }
521
 
@@ -532,11 +532,14 @@ final class PMXE_Wpallimport
532
 
533
  default:
534
 
 
535
  XmlExportCpt::prepare_import_template( $options, self::$templateOptions, $cf_list, $attr_list, $taxs_list, $element_name, $ID);
536
 
537
  XmlExportMediaGallery::prepare_import_template( $options, self::$templateOptions, $element_name, $ID);
538
 
539
- XmlExportUser::prepare_import_template( $options, self::$templateOptions, $element_name, $ID);
 
 
540
 
541
  XmlExportTaxonomy::prepare_import_template( $options, self::$templateOptions, $element_name, $ID);
542
 
499
  $required_add_ons['PMWI_Plugin'] = array(
500
  'name' => 'WooCommerce Add-On Pro',
501
  'paid' => true,
502
+ 'url' => 'http://www.wpallimport.com/woocommerce-product-import/?utm_source=export-plugin-free&utm_medium=upgrade-notice&utm_campaign=import-wooco-products-template'
503
  );
504
  }
505
 
515
  $required_add_ons['PMAI_Plugin'] = array(
516
  'name' => 'ACF Add-On Pro',
517
  'paid' => true,
518
+ 'url' => 'http://www.wpallimport.com/advanced-custom-fields/?utm_source=export-plugin-free&utm_medium=upgrade-notice&utm_campaign=import-acf-template'
519
  );
520
  }
521
 
532
 
533
  default:
534
 
535
+ $addons = new \Wpae\App\Service\Addons\AddonService();
536
  XmlExportCpt::prepare_import_template( $options, self::$templateOptions, $cf_list, $attr_list, $taxs_list, $element_name, $ID);
537
 
538
  XmlExportMediaGallery::prepare_import_template( $options, self::$templateOptions, $element_name, $ID);
539
 
540
+ if($addons->isUserAddonActive()) {
541
+ XmlExportUser::prepare_import_template($options, self::$templateOptions, $element_name, $ID);
542
+ }
543
 
544
  XmlExportTaxonomy::prepare_import_template( $options, self::$templateOptions, $element_name, $ID);
545
 
config/options.php CHANGED
@@ -4,7 +4,7 @@
4
  * and can be changed by corresponding WordPress function calls
5
  */
6
  $config = array(
7
- "info_api_url" => "http://www.wpallimport.com",
8
  "dismiss" => 0,
9
  "dismiss_manage_top" => 0,
10
  "dismiss_manage_bottom" => 0,
4
  * and can be changed by corresponding WordPress function calls
5
  */
6
  $config = array(
7
+ "info_api_url" => "http://www.wpallimport.com/export/?utm_source=export-plugin-free&utm_medium=info-api-url",
8
  "dismiss" => 0,
9
  "dismiss_manage_top" => 0,
10
  "dismiss_manage_bottom" => 0,
controllers/admin/export.php CHANGED
File without changes
controllers/admin/help.php CHANGED
File without changes
controllers/admin/settings.php CHANGED
File without changes
controllers/controller.php CHANGED
File without changes
controllers/controller/admin.php CHANGED
File without changes
filters/pmxe_csv_value.php ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
1
+ <?php
2
+
3
+ function pmxe_pmxe_csv_value($value)
4
+ {
5
+ return preg_replace("/^[=\+\-\@]/", "'$0", $value);
6
+ }
helpers/backward.php CHANGED
File without changes
helpers/pmxe_functions.php CHANGED
@@ -145,18 +145,11 @@
145
  }
146
  else
147
  {
148
- // Check if export was created before v1.4.2-beta-2.0
149
- if ( PMXE_Plugin::isExistingExport("1.4.2-beta-2.0") ){
150
- // Do not change date fields for exports created before v1.4.2-beta-2.0
151
- $post_date = $defaultFormat ? date($defaultFormat, $timestamp) : $timestamp;
152
- }
153
- else
154
- {
155
- if ( in_array(XmlExportEngine::$exportOptions['xml_template_type'], array('custom', 'XmlGoogleMerchants')) ){
156
- $post_date = date("Y-m-d H:i:s", $timestamp);
157
- } else {
158
- $post_date = date("Y-m-d", $timestamp);
159
- }
160
  }
161
  }
162
  return $post_date;
145
  }
146
  else
147
  {
148
+
149
+ if ( in_array(XmlExportEngine::$exportOptions['xml_template_type'], array('custom', 'XmlGoogleMerchants')) ){
150
+ $post_date = date("Y-m-d H:i:s", $timestamp);
151
+ } else {
152
+ $post_date = date("Y-m-d", $timestamp);
 
 
 
 
 
 
 
153
  }
154
  }
155
  return $post_date;
helpers/str_getcsv.php CHANGED
File without changes
helpers/wp_all_export_pre_user_query.php ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ function wp_all_export_pre_user_query($obj)
4
+ {
5
+ if ( ! empty(PMXE_Plugin::$session) and PMXE_Plugin::$session->has_session() )
6
+ {
7
+ // manual export run
8
+ $customWhere = PMXE_Plugin::$session->get('whereclause');
9
+ $obj->query_where .= $customWhere;
10
+
11
+ $customJoin = PMXE_Plugin::$session->get('joinclause');
12
+
13
+ if ( ! empty( $customJoin ) ) {
14
+ foreach ($customJoin as $join) {
15
+ $obj->query_from = str_replace(trim($join), "", $obj->query_from);
16
+ }
17
+ $obj->query_from .= implode( ' ', array_unique( $customJoin ) );
18
+ }
19
+ }
20
+ else
21
+ {
22
+ // cron job execution
23
+ if ( ! empty(XmlExportEngine::$exportOptions['whereclause']) ) $obj->query_where .= XmlExportEngine::$exportOptions['whereclause'];
24
+ if ( ! empty(XmlExportEngine::$exportOptions['joinclause']) ) {
25
+ $obj->query_from .= implode( ' ', array_unique( XmlExportEngine::$exportOptions['joinclause'] ) );
26
+ }
27
+ }
28
+ return $obj;
29
+ }
helpers/wp_all_export_prepare_template_csv.php CHANGED
@@ -68,7 +68,7 @@ function wp_all_export_prepare_template_csv($exportOptions, &$templateOptions)
68
  $required_add_ons['PMWI_Plugin'] = array(
69
  'name' => 'WooCommerce Add-On Pro',
70
  'paid' => true,
71
- 'url' => 'http://www.wpallimport.com/woocommerce-product-import/'
72
  );
73
  }
74
 
@@ -255,7 +255,7 @@ function wp_all_export_prepare_template_csv($exportOptions, &$templateOptions)
255
  $required_add_ons['PMAI_Plugin'] = array(
256
  'name' => 'ACF Add-On Pro',
257
  'paid' => true,
258
- 'url' => 'http://www.wpallimport.com/advanced-custom-fields/?utm_source=wordpress.org&utm_medium=wpai-import-template&utm_campaign=free+wp+all+export+plugin'
259
  );
260
  }
261
 
68
  $required_add_ons['PMWI_Plugin'] = array(
69
  'name' => 'WooCommerce Add-On Pro',
70
  'paid' => true,
71
+ 'url' => 'http://www.wpallimport.com/woocommerce-product-import/?utm_source=export-plugin-free&utm_medium=upgrade-notice&utm_campaign=import-wooco-products-template'
72
  );
73
  }
74
 
255
  $required_add_ons['PMAI_Plugin'] = array(
256
  'name' => 'ACF Add-On Pro',
257
  'paid' => true,
258
+ 'url' => 'http://www.wpallimport.com/advanced-custom-fields/?utm_source=export-plugin-free&utm_medium=required-addons&utm_campaign=acf'
259
  );
260
  }
261
 
helpers/wp_all_export_prepare_template_xml.php CHANGED
@@ -251,7 +251,7 @@ function wp_all_export_prepare_template_xml($exportOptions, &$templateOptions)
251
  $required_add_ons['PMAI_Plugin'] = array(
252
  'name' => 'ACF Add-On Pro',
253
  'paid' => true,
254
- 'url' => 'http://www.wpallimport.com/advanced-custom-fields/?utm_source=wordpress.org&utm_medium=wpai-import-template&utm_campaign=free+wp+all+export+plugin'
255
  );
256
  }
257
 
251
  $required_add_ons['PMAI_Plugin'] = array(
252
  'name' => 'ACF Add-On Pro',
253
  'paid' => true,
254
+ 'url' => 'http://www.wpallimport.com/advanced-custom-fields/?utm_source=export-plugin-free&utm_medium=required-addons&utm_campaign=acf'
255
  );
256
  }
257
 
helpers/wp_redirect_or_javascript.php CHANGED
File without changes
libraries/XmlCsvExport.php CHANGED
@@ -50,7 +50,7 @@ final Class XmlCsvExport
50
  if ( XmlExportEngine::$is_user_export ) { // exporting WordPress users
51
 
52
  foreach ( XmlExportEngine::$exportQuery->results as $user ) {
53
- $articles[] = XmlExportUser::prepare_data($user, false, $acfs, XmlExportEngine::$implode, $preview);
54
  $articles = apply_filters('wp_all_export_csv_rows', $articles, XmlExportEngine::$exportOptions, XmlExportEngine::$exportID);
55
  if (!$preview) do_action('pmxe_exported_post', $user->ID, XmlExportEngine::$exportRecord);
56
  }
@@ -217,7 +217,7 @@ final Class XmlCsvExport
217
 
218
  $xmlWriter->startElement(self::$node_xml_tag);
219
 
220
- XmlExportUser::prepare_data( $user, $xmlWriter, $acfs, XmlExportEngine::$implode, $preview );
221
 
222
  $xmlWriter->closeElement(); // end post
223
 
@@ -226,7 +226,7 @@ final Class XmlCsvExport
226
  }
227
  else {
228
  $articles = array();
229
- $articles[] = XmlExportUser::prepare_data( $user, $xmlWriter, $acfs, XmlExportEngine::$implode, $preview );
230
  $articles = apply_filters('wp_all_export_csv_rows', $articles, XmlExportEngine::$exportOptions, XmlExportEngine::$exportID);
231
 
232
  $xmlWriter->writeArticle( $articles );
@@ -727,116 +727,113 @@ final Class XmlCsvExport
727
  return true;
728
  }
729
  }
730
- // [ \CSV Export Helpers ]
731
 
732
- public static function auto_genetate_export_fields( $post, $errors = false )
733
- {
734
- $errors or $errors = new WP_Error();
735
-
736
- remove_all_filters( "wp_all_export_init_fields", 10 );
737
- remove_all_filters( "wp_all_export_default_fields", 10 );
738
- remove_all_filters( "wp_all_export_other_fields", 10 );
739
- remove_all_filters( "wp_all_export_available_sections", 10 );
740
- remove_all_filters( "wp_all_export_available_data", 10 );
741
-
742
- $engine = new XmlExportEngine($post, $errors);
743
- $engine->init_additional_data();
744
-
745
- $auto_generate = array(
746
- 'ids' => array(),
747
- 'cc_label' => array(),
748
- 'cc_php' => array(),
749
- 'cc_code' => array(),
750
- 'cc_sql' => array(),
751
- 'cc_type' => array(),
752
- 'cc_options' => array(),
753
- 'cc_value' => array(),
754
- 'cc_name' => array()
755
- );
756
-
757
- $available_data = $engine->init_available_data();
758
-
759
- $available_sections = apply_filters("wp_all_export_available_sections", $engine->get('available_sections'));
760
-
761
- foreach ($available_sections as $slug => $section)
762
- {
763
- if ( ! empty($section['content']) and ! empty($available_data[$section['content']]))
764
- {
765
- foreach ($available_data[$section['content']] as $field)
766
- {
767
- if ( is_array($field) and (isset($field['auto']) or (is_array($post['cpt']) && ! in_array('product', $post['cpt']) )))
768
- {
769
- $auto_generate['ids'][] = 1;
770
- $auto_generate['cc_label'][] = is_array($field) ? $field['label'] : $field;
771
- $auto_generate['cc_php'][] = 0;
772
- $auto_generate['cc_code'][] = '';
773
- $auto_generate['cc_sql'][] = '';
774
- $auto_generate['cc_settings'][] = '';
775
- $auto_generate['cc_type'][] = is_array($field) ? $field['type'] : $slug;
776
- $auto_generate['cc_options'][] = '';
777
- $auto_generate['cc_value'][] = is_array($field) ? $field['label'] : $field;
778
- $auto_generate['cc_name'][] = is_array($field) ? $field['name'] : $field;
779
- }
780
- }
781
- }
782
- if ( ! empty($section['additional']) )
783
- {
784
- foreach ($section['additional'] as $sub_slug => $sub_section) {
785
- foreach ($sub_section['meta'] as $field) {
786
- $field_options = ( in_array($sub_slug, array('images', 'attachments')) ) ? esc_attr('{"is_export_featured":true,"is_export_attached":true,"image_separator":"|"}') : '0';
787
- $field_name = '';
788
- switch ($sub_slug) {
789
- case 'images':
790
- $field_name = 'Image ' . $field['name'];
791
- break;
792
- case 'attachments':
793
- $field_name = 'Attachment ' . $field['name'];
794
- break;
795
- default:
796
- $field_name = $field['name'];
797
- break;
798
- }
 
 
 
 
 
 
 
 
 
 
 
 
799
 
800
- if ( is_array($field) and isset($field['auto']) ) {
801
- $auto_generate['ids'][] = 1;
802
- $auto_generate['cc_label'][] = is_array($field) ? $field['label'] : $field;
803
- $auto_generate['cc_php'][] = 0;
804
- $auto_generate['cc_code'][] = '';
805
- $auto_generate['cc_sql'][] = '';
806
- $auto_generate['cc_settings'][] = '';
807
- $auto_generate['cc_type'][] = is_array($field) ? $field['type'] : $sub_slug;
808
- $auto_generate['cc_options'][] = $field_options;
809
- $auto_generate['cc_value'][] = is_array($field) ? $field['label'] : $field;
810
- $auto_generate['cc_name'][] = $field_name;
811
- }
812
- }
813
- }
814
- }
815
- }
 
 
816
 
817
- if ( XmlExportWooCommerceOrder::$is_active ) {
818
- foreach (XmlExportWooCommerceOrder::$order_sections as $slug => $section) {
819
- if ( ! empty($section['meta']) ) {
820
- foreach ($section['meta'] as $cur_meta_key => $field) {
821
- $auto_generate['ids'][] = 1;
822
- $auto_generate['cc_label'][] = is_array($field) ? $field['label'] : $cur_meta_key;
823
- $auto_generate['cc_php'][] = 0;
824
- $auto_generate['cc_code'][] = '';
825
- $auto_generate['cc_sql'][] = '';
826
- $auto_generate['cc_settings'][] = '';
827
- $auto_generate['cc_type'][] = is_array($field) ? $field['type'] : 'woo_order';
828
- $auto_generate['cc_options'][] = is_array($field) ? $field['options'] : $slug;
829
- $auto_generate['cc_value'][] = is_array($field) ? $field['label'] : $cur_meta_key;
830
- $auto_generate['cc_name'][] = is_array($field) ? $field['name'] : $field;
831
- }
832
- }
833
- }
834
- }
835
 
836
- if ( ! XmlExportEngine::$is_comment_export ) XmlExportEngine::$acf_export->auto_generate_export_fields( $auto_generate );
837
 
838
- return $auto_generate;
839
- }
840
 
841
  /**
842
  * @param $xmlWriter
50
  if ( XmlExportEngine::$is_user_export ) { // exporting WordPress users
51
 
52
  foreach ( XmlExportEngine::$exportQuery->results as $user ) {
53
+ $articles[] = XmlExportUser::prepare_data($user, XmlExportEngine::$exportOptions ,false, $acfs, XmlExportEngine::$implode, $preview);
54
  $articles = apply_filters('wp_all_export_csv_rows', $articles, XmlExportEngine::$exportOptions, XmlExportEngine::$exportID);
55
  if (!$preview) do_action('pmxe_exported_post', $user->ID, XmlExportEngine::$exportRecord);
56
  }
217
 
218
  $xmlWriter->startElement(self::$node_xml_tag);
219
 
220
+ XmlExportUser::prepare_data( $user, XmlExportEngine::$exportOptions, $xmlWriter, $acfs, XmlExportEngine::$implode, $preview );
221
 
222
  $xmlWriter->closeElement(); // end post
223
 
226
  }
227
  else {
228
  $articles = array();
229
+ $articles[] = XmlExportUser::prepare_data( $user, XmlExportEngine::$exportOptions, $xmlWriter, $acfs, XmlExportEngine::$implode, $preview );
230
  $articles = apply_filters('wp_all_export_csv_rows', $articles, XmlExportEngine::$exportOptions, XmlExportEngine::$exportID);
231
 
232
  $xmlWriter->writeArticle( $articles );
727
  return true;
728
  }
729
  }
730
+ // [ \CSV Export Helpers ]
731
 
732
+ public static function auto_genetate_export_fields($post, $errors = false)
733
+ {
734
+ $errors or $errors = new WP_Error();
735
+
736
+ remove_all_filters("wp_all_export_init_fields", 10);
737
+ remove_all_filters("wp_all_export_default_fields", 10);
738
+ remove_all_filters("wp_all_export_other_fields", 10);
739
+ remove_all_filters("wp_all_export_available_sections", 10);
740
+ remove_all_filters("wp_all_export_available_data", 10);
741
+
742
+ $engine = new XmlExportEngine($post, $errors);
743
+ $engine->init_additional_data();
744
+
745
+ $auto_generate = array(
746
+ 'ids' => array(),
747
+ 'cc_label' => array(),
748
+ 'cc_php' => array(),
749
+ 'cc_code' => array(),
750
+ 'cc_sql' => array(),
751
+ 'cc_type' => array(),
752
+ 'cc_options' => array(),
753
+ 'cc_value' => array(),
754
+ 'cc_name' => array()
755
+ );
756
+
757
+ $available_data = $engine->init_available_data();
758
+
759
+ $available_sections = apply_filters("wp_all_export_available_sections", $engine->get('available_sections'));
760
+
761
+ foreach ($available_sections as $slug => $section) {
762
+ if (!empty($section['content']) and !empty($available_data[$section['content']])) {
763
+ foreach ($available_data[$section['content']] as $field) {
764
+ if (is_array($field) and (isset($field['auto']) or !in_array('product', $post['cpt']))) {
765
+ $auto_generate['ids'][] = 1;
766
+ $auto_generate['cc_label'][] = is_array($field) ? $field['label'] : $field;
767
+ $auto_generate['cc_php'][] = 0;
768
+ $auto_generate['cc_code'][] = '';
769
+ $auto_generate['cc_sql'][] = '';
770
+ $auto_generate['cc_settings'][] = '';
771
+ $auto_generate['cc_type'][] = is_array($field) ? $field['type'] : $slug;
772
+ $auto_generate['cc_options'][] = '';
773
+ $auto_generate['cc_value'][] = is_array($field) ? $field['label'] : $field;
774
+ $auto_generate['cc_name'][] = is_array($field) ? $field['name'] : $field;
775
+ }
776
+ }
777
+ }
778
+ if (!empty($section['additional'])) {
779
+ foreach ($section['additional'] as $sub_slug => $sub_section) {
780
+ foreach ($sub_section['meta'] as $field) {
781
+ $field_options = (in_array($sub_slug, array('images', 'attachments'))) ? esc_attr('{"is_export_featured":true,"is_export_attached":true,"image_separator":"|"}') : '0';
782
+ $field_name = '';
783
+ switch ($sub_slug) {
784
+ case 'images':
785
+ $field_name = 'Image ' . $field['name'];
786
+ break;
787
+ case 'attachments':
788
+ $field_name = 'Attachment ' . $field['name'];
789
+ break;
790
+ default:
791
+ $field_name = $field['name'];
792
+ break;
793
+ }
794
+
795
+ if (is_array($field) and isset($field['auto'])) {
796
+ $auto_generate['ids'][] = 1;
797
+ $auto_generate['cc_label'][] = is_array($field) ? $field['label'] : $field;
798
+ $auto_generate['cc_php'][] = 0;
799
+ $auto_generate['cc_code'][] = '';
800
+ $auto_generate['cc_sql'][] = '';
801
+ $auto_generate['cc_settings'][] = '';
802
+ $auto_generate['cc_type'][] = is_array($field) ? $field['type'] : $sub_slug;
803
+ $auto_generate['cc_options'][] = $field_options;
804
+ $auto_generate['cc_value'][] = is_array($field) ? $field['label'] : $field;
805
+ $auto_generate['cc_name'][] = $field_name;
806
+ }
807
+ }
808
+ }
809
+ }
810
+ }
811
 
812
+ if (XmlExportWooCommerceOrder::$is_active) {
813
+ foreach (XmlExportWooCommerceOrder::$order_sections as $slug => $section) {
814
+ if (!empty($section['meta'])) {
815
+ foreach ($section['meta'] as $cur_meta_key => $field) {
816
+ $auto_generate['ids'][] = 1;
817
+ $auto_generate['cc_label'][] = is_array($field) ? $field['label'] : $cur_meta_key;
818
+ $auto_generate['cc_php'][] = 0;
819
+ $auto_generate['cc_code'][] = '';
820
+ $auto_generate['cc_sql'][] = '';
821
+ $auto_generate['cc_settings'][] = '';
822
+ $auto_generate['cc_type'][] = is_array($field) ? $field['type'] : 'woo_order';
823
+ $auto_generate['cc_options'][] = is_array($field) ? $field['options'] : $slug;
824
+ $auto_generate['cc_value'][] = is_array($field) ? $field['label'] : $cur_meta_key;
825
+ $auto_generate['cc_name'][] = is_array($field) ? $field['name'] : $field;
826
+ }
827
+ }
828
+ }
829
+ }
830
 
831
+ if (!XmlExportEngine::$is_comment_export) XmlExportEngine::$acf_export->auto_generate_export_fields($auto_generate);
832
+
833
+ return $auto_generate;
834
+ }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
835
 
 
836
 
 
 
837
 
838
  /**
839
  * @param $xmlWriter
libraries/XmlExportACF.php CHANGED
@@ -728,14 +728,20 @@ if ( ! class_exists('XmlExportACF') )
728
 
729
  if ($is_xml_export) $xmlWriter->startElement('row');
730
 
731
- foreach ($row['field']['sub_fields'] as $sub_field) {
732
 
733
  if ($acf and version_compare($acf->settings['version'], '5.0.0') >= 0)
734
  {
735
- $v = $row['value'][ $row['i'] ][ $sub_field['key'] ];
736
  $cache_slug = "format_value/post_id=".$row['post_id']."/name={$sub_field['name']}";
737
  wp_cache_delete($cache_slug, 'acf');
738
- if ($is_xml_export) $v = acf_format_value($v, $row['post_id'], $sub_field);
 
 
 
 
 
 
739
  }
740
  else
741
  {
728
 
729
  if ($is_xml_export) $xmlWriter->startElement('row');
730
 
731
+ foreach ($row['field']['sub_fields'] as $sub_field) {
732
 
733
  if ($acf and version_compare($acf->settings['version'], '5.0.0') >= 0)
734
  {
735
+ $v = $row['value'][ $row['i'] ][ $sub_field['key'] ];
736
  $cache_slug = "format_value/post_id=".$row['post_id']."/name={$sub_field['name']}";
737
  wp_cache_delete($cache_slug, 'acf');
738
+
739
+ if ($acf and version_compare($acf->settings['version'], '5.7.10') >= 0) {
740
+ $store = acf_get_store('values');
741
+ $store->remove($row['post_id'] . ":" . $sub_field['name'] . ":formatted");
742
+ }
743
+
744
+ if ($is_xml_export) $v = acf_format_value($v, $row['post_id'], $sub_field);
745
  }
746
  else
747
  {
libraries/XmlExportEngine.php CHANGED
@@ -5,7 +5,6 @@ if ( ! class_exists('XmlExportEngine') ){
5
  require_once dirname(__FILE__) . '/XmlExportACF.php';
6
  require_once dirname(__FILE__) . '/XmlExportWooCommerce.php';
7
  require_once dirname(__FILE__) . '/XmlExportWooCommerceOrder.php';
8
- require_once dirname(__FILE__) . '/XmlExportUser.php';
9
  require_once dirname(__FILE__) . '/XmlExportComment.php';
10
  require_once dirname(__FILE__) . '/XmlExportTaxonomy.php';
11
 
@@ -40,7 +39,7 @@ if ( ! class_exists('XmlExportEngine') ){
40
  public static $woo_order_export;
41
  public static $woo_coupon_export;
42
  public static $woo_refund_export;
43
- public static $user_export;
44
  public static $comment_export;
45
  public static $taxonomy_export;
46
 
@@ -353,7 +352,9 @@ if ( ! class_exists('XmlExportEngine') ){
353
  'title' => __("Other", "wp_all_export_plugin"),
354
  'content' => 'other_fields'
355
  )
356
- );
 
 
357
 
358
  $this->filter_sections = array(
359
  'author' => array(
@@ -441,13 +442,13 @@ if ( ! class_exists('XmlExportEngine') ){
441
 
442
  self::$acf_export = new XmlExportACF();
443
  self::$woo_export = new XmlExportWooCommerce();
444
- self::$user_export = new XmlExportUser();
445
  self::$comment_export = new XmlExportComment();
446
  self::$taxonomy_export = new XmlExportTaxonomy();
447
  self::$woo_order_export = new XmlExportWooCommerceOrder();
448
- self::$woo_coupon_export = new XmlExportWooCommerceCoupon();
449
 
450
- }
 
451
 
452
  // [FILTERS]
453
 
@@ -551,10 +552,12 @@ if ( ! class_exists('XmlExportEngine') ){
551
  self::$woo_order_export->init($this->_existing_meta_keys);
552
 
553
  // Prepare existing WooCommerce Coupon data
554
- self::$woo_coupon_export->init($this->_existing_meta_keys);
555
 
556
- // Prepare existing Users data
557
- self::$user_export->init($this->_existing_meta_keys);
 
 
558
 
559
  // Prepare existing Comments data
560
  self::$comment_export->init($this->_existing_meta_keys);
@@ -698,13 +701,36 @@ if ( ! class_exists('XmlExportEngine') ){
698
 
699
  foreach ($available_sections as $slug => $section)
700
  {
701
- if ( ! empty($this->available_data[$section['content']]) or ! empty($section['additional']) ):
 
702
  ?>
703
  <p class="wpae-available-fields-group"><?php echo $section['title']; ?><span class="wpae-expander">+</span></p>
704
  <div class="wpae-custom-field">
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
705
  <ul>
706
  <?php if ( ! empty($this->available_data[$section['content']]) ): ?>
707
- <li>
708
  <div class="default_column" rel="">
709
  <label class="wpallexport-element-label"><?php echo __("All", "wp_all_export_plugin") . ' ' . $section['title']; ?></label>
710
  <input type="hidden" name="rules[]" value="pmxe_<?php echo $slug; ?>"/>
@@ -719,9 +745,9 @@ if ( ! class_exists('XmlExportEngine') ){
719
  if ( $field_type == 'cf' && $field_name == '_thumbnail_id' ) continue;
720
 
721
  $is_auto_field = ( ! empty($field['auto']) or self::$is_auto_generate_enabled and ('specific' != $this->post['export_type'] or 'specific' == $this->post['export_type'] and ! in_array(self::$post_types[0], array('product'))));
722
-
723
  ?>
724
- <li class="pmxe_<?php echo $slug; ?> <?php if ( $is_auto_field ) echo 'wp_all_export_auto_generate';?>">
725
  <div class="custom_column" rel="<?php echo ($i + 1);?>">
726
  <label class="wpallexport-xml-element"><?php echo (is_array($field)) ? $field['name'] : $field; ?></label>
727
  <input type="hidden" name="ids[]" value="1"/>
@@ -1009,11 +1035,16 @@ if ( ! class_exists('XmlExportEngine') ){
1009
  $field_name = is_array($field) ? $field['name'] : $field;
1010
  $field_options = empty ($field['options']) ? '' : $field['options'];
1011
 
1012
- if ( $field_type == 'cf' && $field_name == '_thumbnail_id' ) continue;
 
 
 
 
1013
  ?>
1014
  <option
1015
  value="<?php echo $field_type;?>"
1016
- label="<?php echo $field_label;?>"
 
1017
  options="<?php echo $field_options; ?>"><?php echo $field_name;?></option>
1018
  <?php
1019
  }
5
  require_once dirname(__FILE__) . '/XmlExportACF.php';
6
  require_once dirname(__FILE__) . '/XmlExportWooCommerce.php';
7
  require_once dirname(__FILE__) . '/XmlExportWooCommerceOrder.php';
 
8
  require_once dirname(__FILE__) . '/XmlExportComment.php';
9
  require_once dirname(__FILE__) . '/XmlExportTaxonomy.php';
10
 
39
  public static $woo_order_export;
40
  public static $woo_coupon_export;
41
  public static $woo_refund_export;
42
+ public static $user_export = false;
43
  public static $comment_export;
44
  public static $taxonomy_export;
45
 
352
  'title' => __("Other", "wp_all_export_plugin"),
353
  'content' => 'other_fields'
354
  )
355
+ );
356
+
357
+ $this->available_sections = apply_filters('pmxe_available_sections', $this->available_sections);
358
 
359
  $this->filter_sections = array(
360
  'author' => array(
442
 
443
  self::$acf_export = new XmlExportACF();
444
  self::$woo_export = new XmlExportWooCommerce();
 
445
  self::$comment_export = new XmlExportComment();
446
  self::$taxonomy_export = new XmlExportTaxonomy();
447
  self::$woo_order_export = new XmlExportWooCommerceOrder();
448
+ self::$woo_coupon_export = new XmlExportWooCommerceCoupon();
449
 
450
+ do_action('pmxe_init_addons');
451
+ }
452
 
453
  // [FILTERS]
454
 
552
  self::$woo_order_export->init($this->_existing_meta_keys);
553
 
554
  // Prepare existing WooCommerce Coupon data
555
+ self::$woo_coupon_export->init($this->_existing_meta_keys);
556
 
557
+ if(XmlExportEngine::$user_export) {
558
+ // Prepare existing Users data
559
+ self::$user_export->init($this->_existing_meta_keys);
560
+ }
561
 
562
  // Prepare existing Comments data
563
  self::$comment_export->init($this->_existing_meta_keys);
701
 
702
  foreach ($available_sections as $slug => $section)
703
  {
704
+
705
+ if ( ! empty($this->available_data[$section['content']]) or ! empty($section['additional']) ):
706
  ?>
707
  <p class="wpae-available-fields-group"><?php echo $section['title']; ?><span class="wpae-expander">+</span></p>
708
  <div class="wpae-custom-field">
709
+ <?php
710
+ if($slug == 'cf' && XmlExportEngine::$is_user_export) {
711
+ ?>
712
+ <div class="wpallexport-free-edition-notice">
713
+ <a class="upgrade_link" target="_blank" href="https://www.wpallimport.com/checkout/?edd_action=add_to_cart&download_id=118611&edd_options%5Bprice_id%5D=1&utm_source=export-plugin-free&utm_medium=upgrade-notice&utm_campaign=export-user-meta">Upgrade to the Pro edition of WP All Export to Export User Meta</a>
714
+ </div>
715
+ <?php
716
+ }
717
+ ?>
718
+ <?php
719
+ if($slug == 'other' && XmlExportEngine::$is_user_export) {
720
+ ?>
721
+ <div class="wpallexport-free-edition-notice">
722
+ <a class="upgrade_link" target="_blank" href="https://www.wpallimport.com/checkout/?edd_action=add_to_cart&download_id=118611&edd_options%5Bprice_id%5D=1&utm_source=export-plugin-free&utm_medium=upgrade-notice&utm_campaign=export-advanced-user-data">Upgrade to the Pro edition of WP All Export to Export Advanced Fields</a>
723
+ </div>
724
+ <?php
725
+ }
726
+ $elementClass = "";
727
+ if(($slug == 'cf' || $slug == 'other') && XmlExportEngine::$is_user_export){
728
+ $elementClass = 'wpallexport_disabled';
729
+ }
730
+ ?>
731
  <ul>
732
  <?php if ( ! empty($this->available_data[$section['content']]) ): ?>
733
+ <li class="<?php echo $elementClass; ?>">
734
  <div class="default_column" rel="">
735
  <label class="wpallexport-element-label"><?php echo __("All", "wp_all_export_plugin") . ' ' . $section['title']; ?></label>
736
  <input type="hidden" name="rules[]" value="pmxe_<?php echo $slug; ?>"/>
745
  if ( $field_type == 'cf' && $field_name == '_thumbnail_id' ) continue;
746
 
747
  $is_auto_field = ( ! empty($field['auto']) or self::$is_auto_generate_enabled and ('specific' != $this->post['export_type'] or 'specific' == $this->post['export_type'] and ! in_array(self::$post_types[0], array('product'))));
748
+
749
  ?>
750
+ <li class="pmxe_<?php echo $slug; ?> <?php if ( $is_auto_field ) echo 'wp_all_export_auto_generate';?> <?php echo $elementClass;?>">
751
  <div class="custom_column" rel="<?php echo ($i + 1);?>">
752
  <label class="wpallexport-xml-element"><?php echo (is_array($field)) ? $field['name'] : $field; ?></label>
753
  <input type="hidden" name="ids[]" value="1"/>
1035
  $field_name = is_array($field) ? $field['name'] : $field;
1036
  $field_options = empty ($field['options']) ? '' : $field['options'];
1037
 
1038
+ if ( $field_type == 'cf' && $field_name == '_thumbnail_id' || ($field_type=='other')) continue;
1039
+ $elementDisabled = "";
1040
+ if(($section['title'] == 'Custom Fields' || $section['title'] == 'Other') && XmlExportEngine::$is_user_export) {
1041
+ $elementDisabled = "disabled='disabled'";
1042
+ }
1043
  ?>
1044
  <option
1045
  value="<?php echo $field_type;?>"
1046
+ label="<?php echo $field_label;?>"
1047
+ <?php echo $elementDisabled; ?>
1048
  options="<?php echo $field_options; ?>"><?php echo $field_name;?></option>
1049
  <?php
1050
  }
libraries/XmlExportMediaGallery.php CHANGED
@@ -356,10 +356,12 @@ final class XmlExportMediaGallery
356
  }
357
 
358
  public static function get_meta($pid, $key){
 
 
359
  if (XmlExportTaxonomy::$is_active){
360
  return get_term_meta($pid, $key, true);
361
  }
362
- if (XmlExportUser::$is_active){
363
  return get_user_meta($pid, $key, true);
364
  }
365
  return get_post_meta($pid, $key, true);
356
  }
357
 
358
  public static function get_meta($pid, $key){
359
+ $addons = new \Wpae\App\Service\Addons\AddonService();
360
+
361
  if (XmlExportTaxonomy::$is_active){
362
  return get_term_meta($pid, $key, true);
363
  }
364
+ if ($addons->isUserAddonActive() && XmlExportUser::$is_active){
365
  return get_user_meta($pid, $key, true);
366
  }
367
  return get_post_meta($pid, $key, true);
libraries/XmlExportWooCommerceOrder.php CHANGED
@@ -992,7 +992,7 @@ if ( ! class_exists('XmlExportWooCommerceOrder') )
992
  <div class="wpae-custom-field">
993
  <?php if ( ! in_array($slug, array('order', 'customer', 'cf', 'other'))) : ?>
994
  <div class="wpallexport-free-edition-notice">
995
- <a class="upgrade_link" target="_blank" href="https://www.wpallimport.com/checkout/?edd_action=add_to_cart&download_id=118611&edd_options%5Bprice_id%5D=1&utm_source=wordpress.org&utm_medium=wooco+orders&utm_campaign=free+wp+all+export+plugin"><?php _e('Upgrade to the Pro edition of WP All Export to Export Order Data','wp_all_export_plugin');?></a>
996
  </div>
997
  <?php endif; ?>
998
  <ul>
992
  <div class="wpae-custom-field">
993
  <?php if ( ! in_array($slug, array('order', 'customer', 'cf', 'other'))) : ?>
994
  <div class="wpallexport-free-edition-notice">
995
+ <a class="upgrade_link" target="_blank" href="https://www.wpallimport.com/checkout/?edd_action=add_to_cart&download_id=118611&edd_options%5Bprice_id%5D=1&utm_source=export-plugin-free&utm_medium=upgrade-notice&utm_campaign=export-wooco-order-data"><?php _e('Upgrade to the Pro edition of WP All Export to Export Order Data','wp_all_export_plugin');?></a>
996
  </div>
997
  <?php endif; ?>
998
  <ul>
models/export/list.php CHANGED
File without changes
models/export/record.php CHANGED
File without changes
models/model.php CHANGED
File without changes
models/model/list.php CHANGED
File without changes
models/model/record.php CHANGED
File without changes
readme.txt CHANGED
@@ -1,18 +1,21 @@
1
- === Export WordPress data to XML/CSV ===
2
  Contributors: soflyy, wpallimport
3
  Requires at least: 4.1
4
- Tested up to: 5.1
5
- Stable tag: 1.2.3
6
- Tags: wordpress csv export, wordpress xml export, xml, csv, datafeed, export, migrate, export csv from wordpress, export xml from wordpress, advanced xml export, advanced csv export, export data, bulk csv export, export custom post type, export woocommerce products, export woocommerce orders, migrate woocommerce, csv export, export csv, xml export, export xml, csv exporter, datafeed
7
 
8
- WP All Export is an extremely powerful exporter that makes it easy to export any XML, CSV, or Excel file from WordPress.
9
 
10
  == Description ==
11
 
 
 
12
  WP All Export features a three step export process and an intuitive drag & drop interface that makes complicated export tasks simple and fast.
13
 
14
  With WP All Export you can: export data for easy editing, migrate content from WordPress to another site, create a WooCommerce affiliate feed, generate filtered lists of WooCommerce orders, export the email addresses of new customers, create and publish customized WordPress RSS feeds - and much more.
15
- [youtube https://www.youtube.com/watch?v=a-z0R-Ldkqo /]
 
16
 
17
  * **Turn your WordPress data into a customized CSV or XML**
18
 
@@ -50,7 +53,7 @@ For technical support from the developers, please consider purchasing WP All Exp
50
 
51
  * **Guaranteed technical support via e-mail.**
52
 
53
- [Upgrade to the Pro edition of WP All Export.](http://www.wpallimport.com/upgrade-to-wp-all-export-pro/?utm_source=wordpress.org&utm_medium=wordpress-dot-org-slash-wpae&utm_campaign=free+wp+all+export+plugin)
54
 
55
  = Automatic Scheduling =
56
 
@@ -86,6 +89,13 @@ Either: -
86
 
87
  == Changelog ==
88
 
 
 
 
 
 
 
 
89
  = 1.2.3 =
90
  * bugfix: compatibility with ACF 5.7.11
91
 
1
+ === Export any WordPress data to XML/CSV ===
2
  Contributors: soflyy, wpallimport
3
  Requires at least: 4.1
4
+ Tested up to: 5.2
5
+ Stable tag: 1.2.4
6
+ Tags: export, wordpress csv export, wordpress xml export, export woocommerce, migrate, export csv from wordpress, export xml from wordpress, advanced xml export, advanced csv export, export data, bulk csv export, export custom post type, export woocommerce products, export woocommerce orders, migrate woocommerce, csv export, export csv, xml export, export xml, csv exporter, datafeed
7
 
8
+ Easily export any data from WordPress. Drag & drop to create a completely custom spreadsheet, CSV, or XML file.
9
 
10
  == Description ==
11
 
12
+ = WP All Export - Simple & Powerful XML / CSV Export Plugin =
13
+
14
  WP All Export features a three step export process and an intuitive drag & drop interface that makes complicated export tasks simple and fast.
15
 
16
  With WP All Export you can: export data for easy editing, migrate content from WordPress to another site, create a WooCommerce affiliate feed, generate filtered lists of WooCommerce orders, export the email addresses of new customers, create and publish customized WordPress RSS feeds - and much more.
17
+
18
+ [youtube https://www.youtube.com/watch?v=a-z0R-Ldkqo/]
19
 
20
  * **Turn your WordPress data into a customized CSV or XML**
21
 
53
 
54
  * **Guaranteed technical support via e-mail.**
55
 
56
+ [Upgrade to the Pro edition of WP All Export.](http://www.wpallimport.com/upgrade-to-wp-all-export-pro/?utm_source=export-users-addon-free&utm_medium=readme&utm_campaign=premium-support)
57
 
58
  = Automatic Scheduling =
59
 
89
 
90
  == Changelog ==
91
 
92
+ = 1.2.4 =
93
+ * improvement: add support for User Export Add-On
94
+ * improvement: better local timezone detection for Automatic Scheduling
95
+ * improvement: more consistent "Add New Field" user interface
96
+ * bugfix: ACF repeater fields broken in ACF 5.7.10+
97
+ * bugfix: when using migrate posts, only the image fields are added to the import template
98
+
99
  = 1.2.3 =
100
  * bugfix: compatibility with ACF 5.7.11
101
 
schema.php CHANGED
@@ -45,7 +45,7 @@ CREATE TABLE {$table_prefix}exports (
45
  options LONGTEXT,
46
  scheduled VARCHAR(64) NOT NULL DEFAULT '',
47
  registered_on DATETIME NOT NULL DEFAULT '0000-00-00 00:00:00',
48
- friendly_name VARCHAR(64) NOT NULL DEFAULT '',
49
  exported BIGINT(20) NOT NULL DEFAULT 0,
50
  canceled BOOL NOT NULL DEFAULT 0,
51
  canceled_on DATETIME NOT NULL DEFAULT '0000-00-00 00:00:00',
@@ -55,7 +55,7 @@ CREATE TABLE {$table_prefix}exports (
55
  executing BOOL NOT NULL DEFAULT 0,
56
  triggered BOOL NOT NULL DEFAULT 0,
57
  iteration BIGINT(20) NOT NULL DEFAULT 0,
58
- export_post_type VARCHAR(64) NOT NULL DEFAULT '',
59
  PRIMARY KEY (id)
60
  ) $charset_collate;
61
  SCHEMA;
45
  options LONGTEXT,
46
  scheduled VARCHAR(64) NOT NULL DEFAULT '',
47
  registered_on DATETIME NOT NULL DEFAULT '0000-00-00 00:00:00',
48
+ friendly_name TEXT NOT NULL DEFAULT '',
49
  exported BIGINT(20) NOT NULL DEFAULT 0,
50
  canceled BOOL NOT NULL DEFAULT 0,
51
  canceled_on DATETIME NOT NULL DEFAULT '0000-00-00 00:00:00',
55
  executing BOOL NOT NULL DEFAULT 0,
56
  triggered BOOL NOT NULL DEFAULT 0,
57
  iteration BIGINT(20) NOT NULL DEFAULT 0,
58
+ export_post_type TEXT NOT NULL DEFAULT '',
59
  PRIMARY KEY (id)
60
  ) $charset_collate;
61
  SCHEMA;
src/App/Service/Addons/AddonNotFoundException.php ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ namespace Wpae\App\Service\Addons;
4
+
5
+
6
+ class AddonNotFoundException extends \Exception
7
+ {
8
+
9
+ }
10
+
11
+
src/App/Service/Addons/AddonService.php ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ namespace Wpae\App\Service\Addons;
4
+
5
+
6
+ class AddonService
7
+ {
8
+ public function isUserAddonActive() {
9
+ return defined('PMUE_EDITION');
10
+ }
11
+
12
+ public function isUserAddonActiveAndIsUserExport()
13
+ {
14
+ return $this->isUserAddonActive() && \XmlExportUser::$is_active;
15
+ }
16
+
17
+ public function userExportsExistAndAddonNotInstalled()
18
+ {
19
+
20
+ $exports = new \PMXE_Export_List();
21
+ $exports->getBy('parent_id', 0)->convertRecords();
22
+
23
+ foreach ($exports as $item) {
24
+
25
+ if (
26
+ ((in_array('users', $item['options']['cpt']) || in_array('shop_customer', $item['options']['cpt'])) && !$this->isUserAddonActive()) ||
27
+ ($item['options']['export_type'] == 'advanced' && $item['options']['wp_query_selector'] == 'wp_user_query' && !$this->isUserAddonActive())
28
+ ) {
29
+ return true;
30
+ }
31
+
32
+ }
33
+
34
+ return false;
35
+ }
36
+
37
+ }
src/App/UnsecuredController/SchedulingController.php CHANGED
@@ -3,6 +3,8 @@
3
  namespace Wpae\App\UnsecuredController;
4
 
5
 
 
 
6
  use Wpae\Controller\BaseController;
7
  use Wpae\Http\Request;
8
  use Wpae\Scheduling\Export;
@@ -68,6 +70,8 @@ class SchedulingController extends BaseController
68
  $export = new \PMXE_Export_Record();
69
  $export->getById($exportId);
70
 
 
 
71
  if ($export->isEmpty()) {
72
  return new JsonResponse(array('message' => 'Export not found'), 404);
73
  }
@@ -92,8 +96,11 @@ class SchedulingController extends BaseController
92
  return new JsonResponse(array('message' => 'Export #' . $exportId . ' is currently in manually process. Request skipped.'), 409);
93
  } elseif ((int)$export->triggered and !(int)$export->processing) {
94
 
95
- $export->set(array('canceled' => 0))->execute($logger, true);
96
-
 
 
 
97
  if (!(int)$export->triggered and !(int)$export->processing) {
98
  $this->scheduledExportService->process($export);
99
  return new JsonResponse(array('Export #' . $exportId . ' complete'), 201);
@@ -126,4 +133,25 @@ class SchedulingController extends BaseController
126
  $_GET['export_key'] == $cron_job_key;
127
  }
128
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
129
  }
3
  namespace Wpae\App\UnsecuredController;
4
 
5
 
6
+ use Wpae\App\Service\Addons\AddonNotFoundException;
7
+ use Wpae\App\Service\Addons\AddonService;
8
  use Wpae\Controller\BaseController;
9
  use Wpae\Http\Request;
10
  use Wpae\Scheduling\Export;
70
  $export = new \PMXE_Export_Record();
71
  $export->getById($exportId);
72
 
73
+ $this->disableExportsThatDontHaveAddon($export);
74
+
75
  if ($export->isEmpty()) {
76
  return new JsonResponse(array('message' => 'Export not found'), 404);
77
  }
96
  return new JsonResponse(array('message' => 'Export #' . $exportId . ' is currently in manually process. Request skipped.'), 409);
97
  } elseif ((int)$export->triggered and !(int)$export->processing) {
98
 
99
+ try {
100
+ $export->set(array('canceled' => 0))->execute($logger, true);
101
+ } catch (AddonNotFoundException $e) {
102
+ die($e->getMessage());
103
+ }
104
  if (!(int)$export->triggered and !(int)$export->processing) {
105
  $this->scheduledExportService->process($export);
106
  return new JsonResponse(array('Export #' . $exportId . ' complete'), 201);
133
  $_GET['export_key'] == $cron_job_key;
134
  }
135
 
136
+ /**
137
+ * @param $export
138
+ */
139
+ private function disableExportsThatDontHaveAddon($export)
140
+ {
141
+ $cpt = $export->options['cpt'];
142
+ if (!is_array($cpt)) {
143
+ $cpt = array($cpt);
144
+ }
145
+
146
+ $addons = new AddonService();
147
+
148
+ if (
149
+ ((in_array('users', $cpt) || in_array('shop_customer', $cpt)) && !$addons->isUserAddonActive())
150
+ ||
151
+ ($export->options['export_type'] == 'advanced' && $export->options['wp_query_selector'] == 'wp_user_query' && !$addons->isUserAddonActive())
152
+ ) {
153
+ die(\__('The User Export Add-On Pro is required to run this export. You can download the add-on here: <a href="http://www.wpallimport.com/portal/" target="_blank">http://www.wpallimport.com/portal/</a>', \PMXE_Plugin::LANGUAGE_DOMAIN));
154
+ }
155
+ }
156
+
157
  }
src/Csv/CsvWriter.php CHANGED
@@ -17,6 +17,8 @@ class CsvWriter
17
 
18
  public function writeCsv($resource, $value, $delimiter)
19
  {
 
 
20
  if($this->csvStrategy == self::CSV_STRATEGY_DEFAULT) {
21
  fputcsv($resource, $value, $delimiter);
22
  } else {
17
 
18
  public function writeCsv($resource, $value, $delimiter)
19
  {
20
+ $value = apply_filters('pmxe_csv_value', $value);
21
+
22
  if($this->csvStrategy == self::CSV_STRATEGY_DEFAULT) {
23
  fputcsv($resource, $value, $delimiter);
24
  } else {
src/Scheduling/views/ConnectionIcon.php CHANGED
@@ -3,10 +3,10 @@ $scheduling = \Wpae\Scheduling\Scheduling::create();
3
  ?>
4
  <span class="wpai-no-license" <?php if ($scheduling->checkLicense()) { ?> style="display: none;" <?php } ?> >
5
 
6
- <a href="#" style="z-index: 1000;" class="help_scheduling tipsy"
7
  title="Automatic Scheduling is a paid service from Soflyy. Click for more info.">
8
- <img style="width: 16px; top: 2px; position: absolute; left: 0;"
9
- src="<?php echo PMXE_ROOT_URL; ?>/static/img/s-question.png"/>
10
  </a>
11
  </span>
12
 
3
  ?>
4
  <span class="wpai-no-license" <?php if ($scheduling->checkLicense()) { ?> style="display: none;" <?php } ?> >
5
 
6
+ <a href="#" style="z-index: 1000; top: -4px; position: absolute; left: 0;" class="help_scheduling tipsy"
7
  title="Automatic Scheduling is a paid service from Soflyy. Click for more info.">
8
+ <img style="width: 16px;"
9
+ src="<?php echo PMXE_ROOT_URL; ?>/static/img/s-question.png"/>
10
  </a>
11
  </span>
12
 
src/Scheduling/views/ManualScheduling.php CHANGED
@@ -9,7 +9,7 @@
9
  <div style="<?php if ($post['scheduling_enable'] != 2) { ?> display: none; <?php } ?>" class="manual-scheduling">
10
 
11
  <div class="wpallexport-free-edition-notice" style="margin: 15px 0; width: 90%; padding-left: 10px; padding-right: 10px;">
12
- <a style="font-size: 1.3em;" class="upgrade_link" target="_blank" href="https://www.wpallimport.com/checkout/?edd_action=add_to_cart&download_id=118611&edd_options%5Bprice_id%5D=1&utm_source=wordpress.org&utm_medium=cron&utm_campaign=free+wp+all+export+plugin"><?php _e('Upgrade to the Pro edition of WP All Export for Manual Scheduling','wp_all_export_plugin');?></a>
13
  <p>
14
  <?php _e('If you already own it, remove the free edition and install the Pro edition.','wp_all_export_plugin');?>
15
  </p>
@@ -39,8 +39,7 @@
39
  <?php echo site_url() . '/wp-cron.php?security_token=' . substr(md5($cron_job_key . $export_id), 0, 16) . '&export_id=' . $export_id . '&action=get_bundle'; ?>
40
  </code>
41
  </p>
42
- <p style="margin:0; padding-left: 0;"><?php _e('Read more about manual scheduling'); ?>: <a target="_blank"
43
- href="http://www.wpallimport.com/documentation/recurring/cron/">
44
  http://www.wpallimport.com/documentation/recurring/cron/</a>
45
  </p>
46
  </div>
9
  <div style="<?php if ($post['scheduling_enable'] != 2) { ?> display: none; <?php } ?>" class="manual-scheduling">
10
 
11
  <div class="wpallexport-free-edition-notice" style="margin: 15px 0; width: 90%; padding-left: 10px; padding-right: 10px;">
12
+ <a style="font-size: 1.3em;" class="upgrade_link" target="_blank" href="https://www.wpallimport.com/checkout/?edd_action=add_to_cart&download_id=118611&edd_options%5Bprice_id%5D=1&utm_source=export-plugin-free&utm_medium=upgrade-notice&utm_campaign=manual-scheduling"><?php _e('Upgrade to the Pro edition of WP All Export for Manual Scheduling','wp_all_export_plugin');?></a>
13
  <p>
14
  <?php _e('If you already own it, remove the free edition and install the Pro edition.','wp_all_export_plugin');?>
15
  </p>
39
  <?php echo site_url() . '/wp-cron.php?security_token=' . substr(md5($cron_job_key . $export_id), 0, 16) . '&export_id=' . $export_id . '&action=get_bundle'; ?>
40
  </code>
41
  </p>
42
+ <p style="margin:0; padding-left: 0;"><?php _e('Read more about manual scheduling'); ?>: <a target="_blank" href="http://www.wpallimport.com/documentation/recurring/cron/?utm_source=export-plugin-free&utm_medium=read-more&utm_campaign=manual-scheduling">
 
43
  http://www.wpallimport.com/documentation/recurring/cron/</a>
44
  </p>
45
  </div>
src/Scheduling/views/SchedulingOptions.php CHANGED
@@ -528,8 +528,18 @@ $options = \PMXE_Plugin::getInstance()->getOption();
528
  ?>
529
  var timeZone = Intl.DateTimeFormat().resolvedOptions().timeZone;
530
 
531
- $('#timezone').val(timeZone);
532
- $('#timezone').trigger("chosen:updated");
 
 
 
 
 
 
 
 
 
 
533
 
534
  <?php
535
  }
@@ -808,7 +818,7 @@ $options = \PMXE_Plugin::getInstance()->getOption();
808
  <div class="subscribe" style="margin-left: 5px; margin-top: 65px; margin-bottom: 130px; position: relative;">
809
  <div class="button-container">
810
 
811
- <a href="https://www.wpallimport.com/checkout/?edd_action=add_to_cart&download_id=515704" target="_blank" id="subscribe-button">
812
  <div class="button button-primary button-hero wpallexport-large-button button-subscribe"
813
  style="background-image: none; width: 140px; text-align: center; position: absolute; z-index: 4;">
814
  <svg class="success" width="30" height="30" viewBox="0 0 1792 1792"
528
  ?>
529
  var timeZone = Intl.DateTimeFormat().resolvedOptions().timeZone;
530
 
531
+ if($('#timezone').find("option:contains('"+ timeZone +"')").length != 0){
532
+ $('#timezone').trigger("chosen:updated");
533
+ $('#timezone').val(timeZone);
534
+ $('#timezone').trigger("chosen:updated");
535
+ }else{
536
+ var parts = timeZone.split('/');
537
+ var lastPart = parts[parts.length-1];
538
+ var opt = $('#timezone').find("option:contains('"+ lastPart +"')");
539
+
540
+ $('#timezone').val(opt.val());
541
+ $('#timezone').trigger("chosen:updated");
542
+ }
543
 
544
  <?php
545
  }
818
  <div class="subscribe" style="margin-left: 5px; margin-top: 65px; margin-bottom: 130px; position: relative;">
819
  <div class="button-container">
820
 
821
+ <a href="https://www.wpallimport.com/checkout/?edd_action=add_to_cart&download_id=515704&utm_source=export-plugin-free&utm_medium=upgrade-notice&utm_campaign=automatic-scheduling" target="_blank" id="subscribe-button">
822
  <div class="button button-primary button-hero wpallexport-large-button button-subscribe"
823
  style="background-image: none; width: 140px; text-align: center; position: absolute; z-index: 4;">
824
  <svg class="success" width="30" height="30" viewBox="0 0 1792 1792"
src/Scheduling/views/SchedulingUI.php CHANGED
@@ -420,8 +420,18 @@ $export_id = $export->id;
420
  ?>
421
  var timeZone = Intl.DateTimeFormat().resolvedOptions().timeZone;
422
 
423
- $('#timezone').val(timeZone);
424
- $('#timezone').trigger("chosen:updated");
 
 
 
 
 
 
 
 
 
 
425
 
426
  <?php
427
  }
@@ -692,7 +702,7 @@ $export_id = $export->id;
692
  <div class="subscribe" style="margin-left: 5px; margin-top: 65px; margin-bottom: 130px; position: relative;">
693
  <div class="button-container">
694
 
695
- <a href="https://www.wpallimport.com/checkout/?edd_action=add_to_cart&download_id=515704" target="_blank" id="subscribe-button">
696
  <div class="button button-primary button-hero wpallexport-large-button button-subscribe"
697
  style="background-image: none; width: 140px; text-align: center; position: absolute; z-index: 4;">
698
  <svg class="success" width="30" height="30" viewBox="0 0 1792 1792"
420
  ?>
421
  var timeZone = Intl.DateTimeFormat().resolvedOptions().timeZone;
422
 
423
+ if($('#timezone').find("option:contains('"+ timeZone +"')").length != 0){
424
+ $('#timezone').trigger("chosen:updated");
425
+ $('#timezone').val(timeZone);
426
+ $('#timezone').trigger("chosen:updated");
427
+ }else{
428
+ var parts = timeZone.split('/');
429
+ var lastPart = parts[parts.length-1];
430
+ var opt = $('#timezone').find("option:contains('"+ lastPart +"')");
431
+
432
+ $('#timezone').val(opt.val());
433
+ $('#timezone').trigger("chosen:updated");
434
+ }
435
 
436
  <?php
437
  }
702
  <div class="subscribe" style="margin-left: 5px; margin-top: 65px; margin-bottom: 130px; position: relative;">
703
  <div class="button-container">
704
 
705
+ <a href="https://www.wpallimport.com/checkout/?edd_action=add_to_cart&download_id=515704&utm_source=export-plugin-free&utm_medium=upgrade-notice&utm_campaign=automatic-scheduling" target="_blank" id="subscribe-button">
706
  <div class="button button-primary button-hero wpallexport-large-button button-subscribe"
707
  style="background-image: none; width: 140px; text-align: center; position: absolute; z-index: 4;">
708
  <svg class="success" width="30" height="30" viewBox="0 0 1792 1792"
static/css/admin-ie.css CHANGED
File without changes
static/css/admin-wp-3.8.css CHANGED
File without changes
static/css/admin.css CHANGED
@@ -362,6 +362,11 @@
362
  .wpallexport-plugin .wpae-other-fields{
363
  display: none;
364
  }
 
 
 
 
 
365
  .wpallexport-plugin .pmxe_remove_column{
366
  color: red;
367
  cursor: pointer;
@@ -4207,4 +4212,22 @@ input label {
4207
  .wpallexport-plugin .chosen-container-single .chosen-single div {
4208
  top: 9px;
4209
  }
4210
- /** END COMBINE MULTIPLE ELEMENTS INTO ONE **/
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
362
  .wpallexport-plugin .wpae-other-fields{
363
  display: none;
364
  }
365
+
366
+ .wpae-custom-field .wpallexport-free-edition-notice {
367
+ margin-left: 20px;
368
+ }
369
+
370
  .wpallexport-plugin .pmxe_remove_column{
371
  color: red;
372
  cursor: pointer;
4212
  .wpallexport-plugin .chosen-container-single .chosen-single div {
4213
  top: 9px;
4214
  }
4215
+ /** END COMBINE MULTIPLE ELEMENTS INTO ONE **/
4216
+
4217
+ .wpallexport-plugin .connection-icon {
4218
+ top: -1px;
4219
+ left: 152px;
4220
+ position: absolute;
4221
+ }
4222
+
4223
+ .wpallexport-plugin .pmxe_date_format{
4224
+ width: 100%;
4225
+ padding: 18px;
4226
+ height: 25px;
4227
+ border: 1px solid #ddd;
4228
+ box-shadow: inset 0 1px 2px rgba(0,0,0,.07);
4229
+ border-radius: 5px;
4230
+ background-color: #fff;
4231
+ margin-bottom: 10px;
4232
+
4233
+ }
static/img/date-picker.gif CHANGED
File without changes
static/img/down.gif CHANGED
File without changes
static/img/drag.png CHANGED
File without changes
static/img/ico-add-new.png CHANGED
File without changes
static/img/ico-remove.png CHANGED
File without changes
static/img/loading.png CHANGED
File without changes
static/img/progress_animated.gif CHANGED
File without changes
static/img/screen-options-right-up.gif CHANGED
File without changes
static/img/screen-options-right.gif CHANGED
File without changes
static/img/stars.png CHANGED
File without changes
static/js/admin.js CHANGED
@@ -164,7 +164,7 @@
164
 
165
  var initDraggable = function() {
166
  function initGeneralDraggable($element) {
167
- $element.find("li:not(.available_sub_section)").draggable({
168
  appendTo: "body",
169
  containment: "document",
170
  helper: dragHelper,
@@ -790,7 +790,7 @@
790
 
791
  if (postType != '')
792
  {
793
- if (postType == 'users'){
794
  $('.wpallexport-user-export-notice').show();
795
  showImportType = false;
796
  $('.wpallexport-choose-file').find('.wpallexport-upload-resource-step-two').slideDown();
@@ -903,10 +903,11 @@
903
  else{
904
  $('.taxonomy_to_export_wrapper').slideUp();
905
 
906
- if (postType == 'users')
 
907
  {
908
  $('.wpallexport-user-export-notice').show();
909
- $('.wpallexport-choose-file').find('.wpallexport-submit-buttons').hide();
910
  }
911
  else if (postType == 'comments')
912
  {
@@ -950,6 +951,12 @@
950
 
951
  var export_type = $('input[name="cpt"]').val();
952
 
 
 
 
 
 
 
953
  if(export_type == 'shop_order') {
954
  $('#migrate-orders-notice').slideDown();
955
  return;
164
 
165
  var initDraggable = function() {
166
  function initGeneralDraggable($element) {
167
+ $element.find("li:not(.available_sub_section):not(.wpallexport_disabled)").draggable({
168
  appendTo: "body",
169
  containment: "document",
170
  helper: dragHelper,
790
 
791
  if (postType != '')
792
  {
793
+ if (postType == 'users'){
794
  $('.wpallexport-user-export-notice').show();
795
  showImportType = false;
796
  $('.wpallexport-choose-file').find('.wpallexport-upload-resource-step-two').slideDown();
903
  else{
904
  $('.taxonomy_to_export_wrapper').slideUp();
905
 
906
+ if (postType == 'users' && !$('#pmxe_user_addon_free_installed').val()
907
+ )
908
  {
909
  $('.wpallexport-user-export-notice').show();
910
+ $('.wpallexport-choose-file').find('.wpallexport-submit-buttons').hide();
911
  }
912
  else if (postType == 'comments')
913
  {
951
 
952
  var export_type = $('input[name="cpt"]').val();
953
 
954
+ if (export_type == 'users') {
955
+
956
+ $('#migrate-users-notice').slideDown();
957
+ return false;
958
+ }
959
+
960
  if(export_type == 'shop_order') {
961
  $('#migrate-orders-notice').slideDown();
962
  return;
static/js/jquery/css/redmond/images/animated-overlay.gif CHANGED
File without changes
static/js/jquery/css/redmond/images/ui-bg_flat_0_aaaaaa_40x100.png CHANGED
File without changes
static/js/jquery/css/redmond/images/ui-bg_flat_0_aaaaaa_40x100_1.png CHANGED
File without changes
static/js/jquery/css/redmond/images/ui-bg_flat_55_fbec88_40x100.png CHANGED
File without changes
static/js/jquery/css/redmond/images/ui-bg_glass_75_d0e5f5_1x400.png CHANGED
File without changes
static/js/jquery/css/redmond/images/ui-bg_glass_85_dfeffc_1x400.png CHANGED
File without changes
static/js/jquery/css/redmond/images/ui-bg_glass_95_fef1ec_1x400.png CHANGED
File without changes
static/js/jquery/css/redmond/images/ui-bg_gloss-wave_55_5c9ccc_500x100.png CHANGED
File without changes
static/js/jquery/css/redmond/images/ui-bg_inset-hard_100_f5f8f9_1x100.png CHANGED
File without changes
static/js/jquery/css/redmond/images/ui-bg_inset-hard_100_fcfdfd_1x100.png CHANGED
File without changes
static/js/jquery/css/redmond/images/ui-icons_217bc0_256x240.png CHANGED
File without changes
static/js/jquery/css/redmond/images/ui-icons_2e83ff_256x240.png CHANGED
File without changes
static/js/jquery/css/redmond/images/ui-icons_469bdd_256x240.png CHANGED
File without changes
static/js/jquery/css/redmond/images/ui-icons_6da8d5_256x240.png CHANGED
File without changes
static/js/jquery/css/redmond/images/ui-icons_cd0a0a_256x240.png CHANGED
File without changes
static/js/jquery/css/redmond/images/ui-icons_d8e7f3_256x240.png CHANGED
File without changes
static/js/jquery/css/redmond/images/ui-icons_f9bd01_256x240.png CHANGED
File without changes
static/js/jquery/css/redmond/jquery-ui.css CHANGED
File without changes
static/js/jquery/css/select2/select2-bootstrap.css CHANGED
File without changes
static/js/jquery/css/select2/select2-spinner.gif CHANGED
File without changes
static/js/jquery/css/select2/select2.css CHANGED
File without changes
static/js/jquery/css/select2/select2.png CHANGED
File without changes
static/js/jquery/css/smoothness/images/tipsy.gif CHANGED
File without changes
static/js/jquery/css/smoothness/images/ui-bg_flat_0_aaaaaa_40x100.png CHANGED
File without changes
static/js/jquery/css/smoothness/images/ui-bg_flat_75_ffffff_40x100.png CHANGED
File without changes
static/js/jquery/css/smoothness/images/ui-bg_glass_55_fbf9ee_1x400.png CHANGED
File without changes
static/js/jquery/css/smoothness/images/ui-bg_glass_65_ffffff_1x400.png CHANGED
File without changes
static/js/jquery/css/smoothness/images/ui-bg_glass_75_dadada_1x400.png CHANGED
File without changes
static/js/jquery/css/smoothness/images/ui-bg_glass_75_e6e6e6_1x400.png CHANGED
File without changes
static/js/jquery/css/smoothness/images/ui-bg_glass_95_fef1ec_1x400.png CHANGED
File without changes
static/js/jquery/css/smoothness/images/ui-bg_highlight-soft_75_cccccc_1x100.png CHANGED
File without changes
static/js/jquery/css/smoothness/images/ui-icons_222222_256x240.png CHANGED
File without changes
static/js/jquery/css/smoothness/images/ui-icons_2e83ff_256x240.png CHANGED
File without changes
static/js/jquery/css/smoothness/images/ui-icons_454545_256x240.png CHANGED
File without changes
static/js/jquery/css/smoothness/images/ui-icons_888888_256x240.png CHANGED
File without changes
static/js/jquery/css/smoothness/images/ui-icons_cd0a0a_256x240.png CHANGED
File without changes
static/js/jquery/css/smoothness/jquery-ui.css CHANGED
File without changes
static/js/jquery/css/smoothness/jquery.tipsy.css CHANGED
File without changes
static/js/jquery/jquery.tipsy.js CHANGED
File without changes
static/js/jquery/select2.min.js CHANGED
File without changes
static/js/jquery/ui.autocomplete.js CHANGED
File without changes
static/js/jquery/ui.datepicker.js CHANGED
File without changes
static/js/pmxe.js CHANGED
File without changes
views/admin/export/blocks/filters.php CHANGED
@@ -1,5 +1,5 @@
1
  <div class="wpallexport-free-edition-notice" style="padding: 20px; margin-bottom: 10px;">
2
- <a class="upgrade_link" target="_blank" href="https://www.wpallimport.com/checkout/?edd_action=add_to_cart&download_id=118611&edd_options%5Bprice_id%5D=1&utm_source=free-plugin&utm_medium=in-plugin&utm_campaign=download-from-url"><?php _e('Upgrade to the Pro edition of WP All Export to Add Filters','wp_all_export_plugin');?></a>
3
  <p><?php _e('If you already own it, remove the free edition and install the Pro edition.','wp_all_export_plugin');?></p>
4
  </div>
5
  <div class="wp_all_export_rule_inputs">
1
  <div class="wpallexport-free-edition-notice" style="padding: 20px; margin-bottom: 10px;">
2
+ <a class="upgrade_link" target="_blank" href="https://www.wpallimport.com/checkout/?edd_action=add_to_cart&download_id=118611&edd_options%5Bprice_id%5D=1&utm_source=export-plugin-free&utm_medium=upgrade-notice&utm_campaign=filters"><?php _e('Upgrade to the Pro edition of WP All Export to Add Filters','wp_all_export_plugin');?></a>
3
  <p><?php _e('If you already own it, remove the free edition and install the Pro edition.','wp_all_export_plugin');?></p>
4
  </div>
5
  <div class="wp_all_export_rule_inputs">
views/admin/export/index.php CHANGED
@@ -1,3 +1,6 @@
 
 
 
1
  <table class="wpallexport-layout wpallexport-step-1">
2
  <tr>
3
  <td class="left">
@@ -10,7 +13,7 @@
10
  <h2><?php _e('Export to XML / CSV', 'wp_all_export_plugin'); ?></h2>
11
  </div>
12
  <div class="wpallexport-links">
13
- <a href="http://www.wpallimport.com/support/" target="_blank"><?php _e('Support', 'wp_all_export_plugin'); ?></a> | <a href="http://www.wpallimport.com/documentation/" target="_blank"><?php _e('Documentation', 'wp_all_export_plugin'); ?></a>
14
  </div>
15
  </div>
16
 
@@ -132,19 +135,19 @@
132
  </select>
133
  </div>
134
  <div class="wpallexport-free-edition-notice wpallexport-user-export-notice">
135
- <a class="upgrade_link" target="_blank" href="https://www.wpallimport.com/checkout/?edd_action=add_to_cart&download_id=118611&edd_options%5Bprice_id%5D=1&utm_source=wordpress.org&utm_medium=export-users&utm_campaign=free+wp+all+export+plugin"><?php _e('Upgrade to the Pro edition of WP All Export to Export Users','wp_all_export_plugin');?></a>
136
  <p><?php _e('If you already own it, remove the free edition and install the Pro edition.', 'wp_all_export_plugin'); ?></p>
137
  </div>
138
  <div class="wpallexport-free-edition-notice wpallexport-shop_customer-export-notice">
139
- <a class="upgrade_link" target="_blank" href="https://www.wpallimport.com/checkout/?edd_action=add_to_cart&download_id=118611&edd_options%5Bprice_id%5D=1&utm_source=wordpress.org&utm_medium=export-users&utm_campaign=free+wp+all+export+plugin"><?php _e('Upgrade to the Pro edition of WP All Export to Export Customers','wp_all_export_plugin');?></a>
140
  <p><?php _e('If you already own it, remove the free edition and install the Pro edition.', 'wp_all_export_plugin'); ?></p>
141
  </div>
142
  <div class="wpallexport-free-edition-notice wpallexport-comments-export-notice">
143
- <a class="upgrade_link" target="_blank" href="https://www.wpallimport.com/checkout/?edd_action=add_to_cart&download_id=118611&edd_options%5Bprice_id%5D=1&utm_source=wordpress.org&utm_medium=export-users&utm_campaign=free+wp+all+export+plugin"><?php _e('Upgrade to the Pro edition of WP All Export to Export Comments','wp_all_export_plugin');?></a>
144
  <p><?php _e('If you already own it, remove the free edition and install the Pro edition.', 'wp_all_export_plugin'); ?></p>
145
  </div>
146
  <div class="wpallexport-free-edition-notice wpallexport-taxonomies-export-notice">
147
- <a class="upgrade_link" target="_blank" href="http://www.wpallimport.com/order-now/export/?utm_source=wordpress.org&utm_campaign=free%2Bwp%2Ball%2Bexport%2Bplugin&utm_medium=taxonomies"><?php _e('Upgrade to the Pro edition of WP All Export to Export Taxonomies','wp_all_export_plugin');?></a>
148
  <p><?php _e('If you already own it, remove the free edition and install the Pro edition.', 'wp_all_export_plugin'); ?></p>
149
  </div>
150
  </div>
@@ -167,12 +170,12 @@
167
  </select>
168
 
169
  <div class="wpallexport-free-edition-notice wpallexport-user-export-notice" style="margin-bottom: 20px;">
170
- <a class="upgrade_link" target="_blank" href="https://www.wpallimport.com/checkout/?edd_action=add_to_cart&download_id=118611&edd_options%5Bprice_id%5D=1&utm_source=wordpress.org&utm_medium=export-users&utm_campaign=free+wp+all+export+plugin"><?php _e('Upgrade to the Pro edition of WP All Export to Export Users','wp_all_export_plugin');?></a>
171
  <p><?php _e('If you already own it, remove the free edition and install the Pro edition.', 'wp_all_export_plugin'); ?></p>
172
  </div>
173
 
174
  <div class="wpallexport-free-edition-notice wpallexport-comments-export-notice" style="margin-bottom: 20px;">
175
- <a class="upgrade_link" target="_blank" href="https://www.wpallimport.com/checkout/?edd_action=add_to_cart&download_id=118611&edd_options%5Bprice_id%5D=1&utm_source=wordpress.org&utm_medium=export-users&utm_campaign=free+wp+all+export+plugin"><?php _e('Upgrade to the Pro edition of WP All Export to Export Comments','wp_all_export_plugin');?></a>
176
  <p><?php _e('If you already own it, remove the free edition and install the Pro edition.', 'wp_all_export_plugin'); ?></p>
177
  </div>
178
 
1
+ <?php
2
+ do_action('pmxe_addons_html');
3
+ ?>
4
  <table class="wpallexport-layout wpallexport-step-1">
5
  <tr>
6
  <td class="left">
13
  <h2><?php _e('Export to XML / CSV', 'wp_all_export_plugin'); ?></h2>
14
  </div>
15
  <div class="wpallexport-links">
16
+ <a href="http://www.wpallimport.com/support/?utm_source=export-plugin-free&utm_medium=help&utm_campaign=premium-support" target="_blank"><?php _e('Support', 'wp_all_export_plugin'); ?></a> | <a href="http://www.wpallimport.com/documentation/?utm_source=export-plugin-free&utm_medium=help&utm_campaign=docs" target="_blank"><?php _e('Documentation', 'wp_all_export_plugin'); ?></a>
17
  </div>
18
  </div>
19
 
135
  </select>
136
  </div>
137
  <div class="wpallexport-free-edition-notice wpallexport-user-export-notice">
138
+ <a class="upgrade_link" target="_blank" href="https://www.wpallimport.com/checkout/?edd_action=add_to_cart&download_id=118611&edd_options%5Bprice_id%5D=1&utm_source=export-plugin-free&utm_medium=upgrade-notice&utm_campaign=export-users"><?php _e('Upgrade to the Pro edition of WP All Export to Export Users','wp_all_export_plugin');?></a>
139
  <p><?php _e('If you already own it, remove the free edition and install the Pro edition.', 'wp_all_export_plugin'); ?></p>
140
  </div>
141
  <div class="wpallexport-free-edition-notice wpallexport-shop_customer-export-notice">
142
+ <a class="upgrade_link" target="_blank" href="https://www.wpallimport.com/checkout/?edd_action=add_to_cart&download_id=118611&edd_options%5Bprice_id%5D=1&utm_source=export-plugin-free&utm_medium=upgrade-notice&utm_campaign=export-wooco-customers"><?php _e('Upgrade to the Pro edition of WP All Export to Export Customers','wp_all_export_plugin');?></a>
143
  <p><?php _e('If you already own it, remove the free edition and install the Pro edition.', 'wp_all_export_plugin'); ?></p>
144
  </div>
145
  <div class="wpallexport-free-edition-notice wpallexport-comments-export-notice">
146
+ <a class="upgrade_link" target="_blank" href="https://www.wpallimport.com/checkout/?edd_action=add_to_cart&download_id=118611&edd_options%5Bprice_id%5D=1&utm_source=export-plugin-free&utm_medium=upgrade-notice&utm_campaign=export-comments"><?php _e('Upgrade to the Pro edition of WP All Export to Export Comments','wp_all_export_plugin');?></a>
147
  <p><?php _e('If you already own it, remove the free edition and install the Pro edition.', 'wp_all_export_plugin'); ?></p>
148
  </div>
149
  <div class="wpallexport-free-edition-notice wpallexport-taxonomies-export-notice">
150
+ <a class="upgrade_link" target="_blank" href="https://www.wpallimport.com/checkout/?edd_action=add_to_cart&download_id=118611&edd_options%5Bprice_id%5D=1&utm_source=export-plugin-free&utm_medium=upgrade-notice&utm_campaign=export-taxonomies"><?php _e('Upgrade to the Pro edition of WP All Export to Export Taxonomies','wp_all_export_plugin');?></a>
151
  <p><?php _e('If you already own it, remove the free edition and install the Pro edition.', 'wp_all_export_plugin'); ?></p>
152
  </div>
153
  </div>
170
  </select>
171
 
172
  <div class="wpallexport-free-edition-notice wpallexport-user-export-notice" style="margin-bottom: 20px;">
173
+ <a class="upgrade_link" target="_blank" href="https://www.wpallimport.com/checkout/?edd_action=add_to_cart&download_id=118611&edd_options%5Bprice_id%5D=1&utm_source=export-plugin-free&utm_medium=upgrade-notice&utm_campaign=export-users"><?php _e('Upgrade to the Pro edition of WP All Export to Export Users','wp_all_export_plugin');?></a>
174
  <p><?php _e('If you already own it, remove the free edition and install the Pro edition.', 'wp_all_export_plugin'); ?></p>
175
  </div>
176
 
177
  <div class="wpallexport-free-edition-notice wpallexport-comments-export-notice" style="margin-bottom: 20px;">
178
+ <a class="upgrade_link" target="_blank" href="https://www.wpallimport.com/checkout/?edd_action=add_to_cart&download_id=118611&edd_options%5Bprice_id%5D=1&utm_source=export-plugin-free&utm_medium=upgrade-notice&utm_campaign=export-comments"><?php _e('Upgrade to the Pro edition of WP All Export to Export Comments','wp_all_export_plugin');?></a>
179
  <p><?php _e('If you already own it, remove the free edition and install the Pro edition.', 'wp_all_export_plugin'); ?></p>
180
  </div>
181
 
views/admin/export/options.php CHANGED
@@ -22,7 +22,7 @@ $l10n = array(
22
  <h2><?php _e('Export to XML / CSV', 'wp_all_export_plugin'); ?></h2>
23
  </div>
24
  <div class="wpallexport-links">
25
- <a href="http://www.wpallimport.com/support/" target="_blank"><?php _e('Support', 'wp_all_export_plugin'); ?></a> | <a href="http://www.wpallimport.com/documentation/" target="_blank"><?php _e('Documentation', 'wp_all_export_plugin'); ?></a>
26
  </div>
27
  </div>
28
  <div class="clear"></div>
@@ -79,8 +79,9 @@ $l10n = array(
79
  <input type="hidden" class="hierarhy-output" name="filter_rules_hierarhy" value="<?php echo esc_html($post['filter_rules_hierarhy']);?>"/>
80
 
81
  <?php
 
82
  $selected_post_type = '';
83
- if (XmlExportUser::$is_active):
84
  $selected_post_type = empty($post['cpt'][0]) ? 'users' : $post['cpt'][0];
85
  endif;
86
  if (XmlExportComment::$is_active):
22
  <h2><?php _e('Export to XML / CSV', 'wp_all_export_plugin'); ?></h2>
23
  </div>
24
  <div class="wpallexport-links">
25
+ <a href="http://www.wpallimport.com/support/?utm_source=export-plugin-free&utm_medium=help&utm_campaign=premium-support" target="_blank"><?php _e('Support', 'wp_all_export_plugin'); ?></a> | <a href="http://www.wpallimport.com/documentation/?utm_source=export-plugin-free&utm_medium=help&utm_campaign=docs" target="_blank"><?php _e('Documentation', 'wp_all_export_plugin'); ?></a>
26
  </div>
27
  </div>
28
  <div class="clear"></div>
79
  <input type="hidden" class="hierarhy-output" name="filter_rules_hierarhy" value="<?php echo esc_html($post['filter_rules_hierarhy']);?>"/>
80
 
81
  <?php
82
+ $addons = new \Wpae\App\Service\Addons\AddonService();
83
  $selected_post_type = '';
84
+ if ($addons->isUserAddonActive() && XmlExportUser::$is_active):
85
  $selected_post_type = empty($post['cpt'][0]) ? 'users' : $post['cpt'][0];
86
  endif;
87
  if (XmlExportComment::$is_active):
views/admin/export/process.php CHANGED
@@ -9,9 +9,9 @@
9
  <h2><?php _e('Export to XML / CSV', 'wp_all_export_plugin'); ?></h2>
10
  </div>
11
  <div class="wpallexport-links">
12
- <a href="http://www.wpallimport.com/support/"
13
  target="_blank"><?php _e('Support', 'wp_all_export_plugin'); ?></a> | <a
14
- href="http://www.wpallimport.com/documentation/"
15
  target="_blank"><?php _e('Documentation', 'wp_all_export_plugin'); ?></a>
16
  </div>
17
 
9
  <h2><?php _e('Export to XML / CSV', 'wp_all_export_plugin'); ?></h2>
10
  </div>
11
  <div class="wpallexport-links">
12
+ <a href="http://www.wpallimport.com/support/?utm_source=export-plugin-free&utm_medium=help&utm_campaign=premium-support"
13
  target="_blank"><?php _e('Support', 'wp_all_export_plugin'); ?></a> | <a
14
+ href="http://www.wpallimport.com/documentation/?utm_source=export-plugin-free&utm_medium=help&utm_campaign=docs"
15
  target="_blank"><?php _e('Documentation', 'wp_all_export_plugin'); ?></a>
16
  </div>
17
 
views/admin/export/success_page.php CHANGED
@@ -49,7 +49,7 @@ $isGoogleFeed = false;
49
  <h3 style="margin-top: 30px; margin-bottom: 30px;"><?php _e("Click to Download", 'wp_all_export_plugin'); ?></h3>
50
 
51
  <div class="wpallexport-free-edition-notice" id="migrate-orders-notice" style="padding: 20px; margin-bottom: 35px; display: none;">
52
- <a class="upgrade_link" target="_blank" href="https://www.wpallimport.com/checkout/?edd_action=add_to_cart&download_id=118611&edd_options%5Bprice_id%5D=1&utm_source=wordpress.org&utm_medium=migrate+orders&utm_campaign=free+wp+all+export+plugin"><?php _e('Upgrade to the Pro edition of WP All Export to Migrate Orders', PMXE_Plugin::LANGUAGE_DOMAIN);?></a>
53
  <p><?php _e('If you already own it, remove the free edition and install the Pro edition.', PMXE_Plugin::LANGUAGE_DOMAIN);?></p>
54
  </div>
55
 
@@ -96,7 +96,7 @@ $isGoogleFeed = false;
96
  <p>
97
  <?php _e("Automatically send your data to over 500 apps with Zapier.", 'wp_all_export_plugin'); ?>
98
  <br/>
99
- <a href="https://www.wpallimport.com/checkout/?edd_action=add_to_cart&download_id=118611&edd_options%5Bprice_id%5D=1&utm_source=wordpress.org&utm_medium=zapier&utm_campaign=free+wp+all+export+plugin" target="_blank">
100
  <?php _e("Upgrade to the Pro edition of WP All Export for Zapier integration", 'wp_all_export_plugin'); ?>
101
  </a>
102
  <br/>
49
  <h3 style="margin-top: 30px; margin-bottom: 30px;"><?php _e("Click to Download", 'wp_all_export_plugin'); ?></h3>
50
 
51
  <div class="wpallexport-free-edition-notice" id="migrate-orders-notice" style="padding: 20px; margin-bottom: 35px; display: none;">
52
+ <a class="upgrade_link" target="_blank" href="https://www.wpallimport.com/checkout/?edd_action=add_to_cart&download_id=118611&edd_options%5Bprice_id%5D=1&utm_source=export-plugin-free&utm_medium=upgrade-notice&utm_campaign=migrate-orders"><?php _e('Upgrade to the Pro edition of WP All Export to Migrate Orders', PMXE_Plugin::LANGUAGE_DOMAIN);?></a>
53
  <p><?php _e('If you already own it, remove the free edition and install the Pro edition.', PMXE_Plugin::LANGUAGE_DOMAIN);?></p>
54
  </div>
55
 
96
  <p>
97
  <?php _e("Automatically send your data to over 500 apps with Zapier.", 'wp_all_export_plugin'); ?>
98
  <br/>
99
+ <a href="https://www.wpallimport.com/checkout/?edd_action=add_to_cart&download_id=118611&edd_options%5Bprice_id%5D=1&utm_source=export-plugin-free&utm_medium=upgrade-notice&utm_campaign=zapier" target="_blank">
100
  <?php _e("Upgrade to the Pro edition of WP All Export for Zapier integration", 'wp_all_export_plugin'); ?>
101
  </a>
102
  <br/>
views/admin/export/template.php CHANGED
@@ -7,10 +7,10 @@
7
  <h2><?php _e('Export to XML / CSV', 'wp_all_export_plugin'); ?></h2>
8
  </div>
9
  <div class="wpallexport-links">
10
- <a href="http://www.wpallimport.com/support/"
11
  target="_blank"><?php _e('Support', 'wp_all_export_plugin'); ?></a> |
12
  <a
13
- href="http://www.wpallimport.com/documentation/"
14
  target="_blank"><?php _e('Documentation', 'wp_all_export_plugin'); ?></a>
15
  </div>
16
  </div>
@@ -47,9 +47,10 @@
47
  <input type="hidden" name="export_only_modified_stuff" value="<?php echo $post['export_only_modified_stuff'];?>" />
48
  <input type="hidden" name="export_only_new_stuff" value="<?php echo $post['export_only_new_stuff'];?>" />
49
 
50
- <?php
 
51
  $selected_post_type = '';
52
- if (XmlExportUser::$is_active):
53
  $selected_post_type = empty($post['cpt'][0]) ? 'users' : $post['cpt'][0];
54
  endif;
55
  if (XmlExportComment::$is_active):
@@ -357,7 +358,7 @@
357
  <div class="wpallexport-clear"></div>
358
  <div class="input export_to_xls_upgrade_notice" style="vertical-align:middle; position: relative; margin-top: 48px;">
359
  <span class="wpallexport-free-edition-notice">
360
- <a class="upgrade_link" target="_blank" href="https://www.wpallimport.com/checkout/?edd_action=add_to_cart&download_id=118611&edd_options%5Bprice_id%5D=1&utm_source=wordpress.org&utm_medium=wooco+orders&utm_campaign=free+wp+all+export+plugin"><?php _e('Upgrade to the Pro edition of WP All Export to Export to Excel','wp_all_export_plugin');?></a>
361
  <p><?php _e('If you already own it, remove the free edition and install the Pro edition.','wp_all_export_plugin');?></p>
362
  </span>
363
  </div>
@@ -492,7 +493,7 @@
492
 
493
  <textarea id="wp_all_export_main_code" name="wp_all_export_main_code"><?php echo "<?php\n\n?>";?></textarea>
494
  <div class="wpallexport-free-edition-notice" style="margin: 15px 0;">
495
- <a class="upgrade_link" target="_blank" href="https://www.wpallimport.com/checkout/?edd_action=add_to_cart&download_id=118611&edd_options%5Bprice_id%5D=1&utm_source=wordpress.org&utm_medium=custom-php&utm_campaign=free+wp+all+export+plugin"><?php _e('Upgrade to the Pro edition of WP All Export to use Custom PHP Functions','wp_all_export_plugin');?></a>
496
  <p><?php _e('If you already own it, remove the free edition and install the Pro edition.','wp_all_export_plugin');?></p>
497
  </div>
498
  <div class="input" style="margin-top: 10px;">
@@ -547,14 +548,14 @@
547
 
548
  <div class="input custom_xml_upgrade_notice wpallexport-custom-xml-template" style="vertical-align:middle; position: relative; top: -5px;">
549
  <span class="wpallexport-free-edition-notice" style="margin: 0 0 10px;">
550
- <a class="upgrade_link" target="_blank" href="https://www.wpallimport.com/checkout/?edd_action=add_to_cart&download_id=118611&edd_options%5Bprice_id%5D=1&utm_source=wordpress.org&utm_medium=wooco+orders&utm_campaign=free+wp+all+export+plugin"><?php _e('Upgrade to the Pro edition of WP All Export to Export Custom XML','wp_all_export_plugin');?></a>
551
  <p><?php _e('If you already own it, remove the free edition and install the Pro edition.','wp_all_export_plugin');?></p>
552
  </span>
553
  </div>
554
 
555
  <div class="input custom_xml_upgrade_notice wpallexport-google-merchants-template" style="vertical-align:middle; position: relative; top: -5px;">
556
  <span class="wpallexport-free-edition-notice" style="margin: 0 0 10px;">
557
- <a class="upgrade_link" target="_blank" href="https://www.wpallimport.com/checkout/?edd_action=add_to_cart&download_id=118611&edd_options%5Bprice_id%5D=1&utm_source=wordpress.org&utm_medium=google+merchant+center&utm_campaign=free+wp+all+export+plugin"><?php _e('Upgrade to the Pro edition of WP All Export to Export To Google Merchant Center','wp_all_export_plugin');?></a>
558
  <p><?php _e('If you already own it, remove the free edition and install the Pro edition.','wp_all_export_plugin');?></p>
559
  </span>
560
  </div>
7
  <h2><?php _e('Export to XML / CSV', 'wp_all_export_plugin'); ?></h2>
8
  </div>
9
  <div class="wpallexport-links">
10
+ <a href="http://www.wpallimport.com/support/?utm_source=export-plugin-free&utm_medium=help&utm_campaign=premium-support"
11
  target="_blank"><?php _e('Support', 'wp_all_export_plugin'); ?></a> |
12
  <a
13
+ href="http://www.wpallimport.com/documentation/?utm_source=export-plugin-free&utm_medium=help&utm_campaign=docs"
14
  target="_blank"><?php _e('Documentation', 'wp_all_export_plugin'); ?></a>
15
  </div>
16
  </div>
47
  <input type="hidden" name="export_only_modified_stuff" value="<?php echo $post['export_only_modified_stuff'];?>" />
48
  <input type="hidden" name="export_only_new_stuff" value="<?php echo $post['export_only_new_stuff'];?>" />
49
 
50
+ <?php
51
+ $addons = new \Wpae\App\Service\Addons\AddonService();
52
  $selected_post_type = '';
53
+ if ($addons->isUserAddonActive() && XmlExportUser::$is_active):
54
  $selected_post_type = empty($post['cpt'][0]) ? 'users' : $post['cpt'][0];
55
  endif;
56
  if (XmlExportComment::$is_active):
358
  <div class="wpallexport-clear"></div>
359
  <div class="input export_to_xls_upgrade_notice" style="vertical-align:middle; position: relative; margin-top: 48px;">
360
  <span class="wpallexport-free-edition-notice">
361
+ <a class="upgrade_link" target="_blank" href="https://www.wpallimport.com/checkout/?edd_action=add_to_cart&download_id=118611&edd_options%5Bprice_id%5D=1&utm_source=export-plugin-free&utm_medium=upgrade-notice&utm_campaign=export-excel"><?php _e('Upgrade to the Pro edition of WP All Export to Export to Excel','wp_all_export_plugin');?></a>
362
  <p><?php _e('If you already own it, remove the free edition and install the Pro edition.','wp_all_export_plugin');?></p>
363
  </span>
364
  </div>
493
 
494
  <textarea id="wp_all_export_main_code" name="wp_all_export_main_code"><?php echo "<?php\n\n?>";?></textarea>
495
  <div class="wpallexport-free-edition-notice" style="margin: 15px 0;">
496
+ <a class="upgrade_link" target="_blank" href="https://www.wpallimport.com/checkout/?edd_action=add_to_cart&download_id=118611&edd_options%5Bprice_id%5D=1&utm_source=export-plugin-free&utm_medium=upgrade-notice&utm_campaign=custom-php"><?php _e('Upgrade to the Pro edition of WP All Export to use Custom PHP Functions','wp_all_export_plugin');?></a>
497
  <p><?php _e('If you already own it, remove the free edition and install the Pro edition.','wp_all_export_plugin');?></p>
498
  </div>
499
  <div class="input" style="margin-top: 10px;">
548
 
549
  <div class="input custom_xml_upgrade_notice wpallexport-custom-xml-template" style="vertical-align:middle; position: relative; top: -5px;">
550
  <span class="wpallexport-free-edition-notice" style="margin: 0 0 10px;">
551
+ <a class="upgrade_link" target="_blank" href="https://www.wpallimport.com/checkout/?edd_action=add_to_cart&download_id=118611&edd_options%5Bprice_id%5D=1&utm_source=export-plugin-free&utm_medium=upgrade-notice&utm_campaign=custom-xml"><?php _e('Upgrade to the Pro edition of WP All Export to Export Custom XML','wp_all_export_plugin');?></a>
552
  <p><?php _e('If you already own it, remove the free edition and install the Pro edition.','wp_all_export_plugin');?></p>
553
  </span>
554
  </div>
555
 
556
  <div class="input custom_xml_upgrade_notice wpallexport-google-merchants-template" style="vertical-align:middle; position: relative; top: -5px;">
557
  <span class="wpallexport-free-edition-notice" style="margin: 0 0 10px;">
558
+ <a class="upgrade_link" target="_blank" href="https://www.wpallimport.com/checkout/?edd_action=add_to_cart&download_id=118611&edd_options%5Bprice_id%5D=1&utm_source=export-plugin-free&utm_medium=upgrade-notice&utm_campaign=google-merchant-center"><?php _e('Upgrade to the Pro edition of WP All Export to Export To Google Merchant Center','wp_all_export_plugin');?></a>
559
  <p><?php _e('If you already own it, remove the free edition and install the Pro edition.','wp_all_export_plugin');?></p>
560
  </span>
561
  </div>
views/admin/export/template/add_new_field.php CHANGED
@@ -139,7 +139,7 @@
139
 
140
  <div class="elements export-multiple" id="combine_multiple_fields_value_container" style="margin-top: 10px; margin-left: 25px; display: none;">
141
  <div class="wpallexport-free-edition-notice add-new-field-notice" style="margin: 15px 0; display: none;">
142
- <a class="upgrade_link" target="_blank" href="https://www.wpallimport.com/checkout/?edd_action=add_to_cart&download_id=118611&edd_options%5Bprice_id%5D=1&utm_source=wordpress.org&utm_medium=custom-fields&utm_campaign=free+wp+all+export+plugin">
143
  <?php _e('Upgrade to Pro to use Custom Export Fields','wp_all_export_plugin');?></a>
144
  </div>
145
  <textarea placeholder="<?php _e('You can drag and drop fields from Available Data, add static text, and use PHP functions', PMXE_Plugin::LANGUAGE_DOMAIN); ?>" id="combine_multiple_fields_value" style="width: 100%;" rows="7"></textarea>
139
 
140
  <div class="elements export-multiple" id="combine_multiple_fields_value_container" style="margin-top: 10px; margin-left: 25px; display: none;">
141
  <div class="wpallexport-free-edition-notice add-new-field-notice" style="margin: 15px 0; display: none;">
142
+ <a class="upgrade_link" target="_blank" href="https://www.wpallimport.com/checkout/?edd_action=add_to_cart&download_id=118611&edd_options%5Bprice_id%5D=1&utm_source=export-plugin-free&utm_medium=upgrade-notice&utm_campaign=custom-export-fields">
143
  <?php _e('Upgrade to Pro to use Custom Export Fields','wp_all_export_plugin');?></a>
144
  </div>
145
  <textarea placeholder="<?php _e('You can drag and drop fields from Available Data, add static text, and use PHP functions', PMXE_Plugin::LANGUAGE_DOMAIN); ?>" id="combine_multiple_fields_value" style="width: 100%;" rows="7"></textarea>
views/admin/export/template/advanced_field_options.php CHANGED
@@ -1,11 +1,11 @@
1
  <div class="wp-all-export-advanced-field-options-content">
2
  <!-- Options for SQL field -->
3
- <div class="input cc_field sql_field_type">
4
  <a href="#help" rel="sql" class="help" style="display:none;" title="<?php _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_plugin'); ?>">?</a>
5
  <textarea style="width:100%;" rows="5" class="column_value"></textarea>
6
  </div>
7
  <!-- Options for ACF Repeater field -->
8
- <div class="input cc_field repeater_field_type">
9
  <input type="hidden" name="repeater_field_item_per_line" value="0"/>
10
  <input type="checkbox" id="repeater_field_item_per_line" class="switcher" name="repeater_field_item_per_line" value="1" style="margin: 2px;"/>
11
  <label for="repeater_field_item_per_line"><?php _e("Display each repeater row in its own csv line", "wp_all_export_plugin"); ?></label>
@@ -17,7 +17,7 @@
17
  </div>
18
  </div>
19
  <!-- Options for Image field from Media section -->
20
- <div class="input cc_field image_field_type">
21
  <div class="input">
22
  <input type="hidden" name="image_field_is_export_featured" value="0"/>
23
  <input type="checkbox" id="is_image_export_featured" name="image_field_is_export_featured" value="1" style="margin: 2px;" checked="checked"/>
@@ -32,20 +32,21 @@
32
  <input type="text" name="image_field_separator" value="|" style="width: 40px; text-align:center;">
33
  </div>
34
  </div>
35
- </div>
 
36
  <!-- Options for Date field -->
37
- <div class="input cc_field date_field_type">
38
- <select class="date_field_export_data" style="width: 100%; height: 30px;">
39
  <option value="unix"><?php _e("UNIX timestamp - PHP time()", "wp_all_export_plugin");?></option>
40
  <option value="php"><?php _e("Natural Language PHP date()", "wp_all_export_plugin");?></option>
41
  </select>
42
  <div class="input pmxe_date_format_wrapper">
43
  <label style="padding:4px; display: block;"><?php _e("date() Format", "wp_all_export_plugin"); ?></label>
44
- <input type="text" class="pmxe_date_format" value="" placeholder="Y-m-d" style="width: 100%;"/>
45
  </div>
46
  </div>
47
  <!-- Options for Up/Cross sells products -->
48
- <div class="input cc_field linked_field_type">
49
  <select class="linked_field_export_data" style="width: 100%; height: 30px;">
50
  <option value="sku"><?php _e("Product SKU", "wp_all_export_plugin");?></option>
51
  <option value="id"><?php _e("Product ID", "wp_all_export_plugin");?></option>
@@ -59,7 +60,7 @@
59
  <a href="#help" class="wpallexport-help" title="<?php _e('The value of the field chosen for export will be passed to the PHP function.', 'wp_all_export_plugin'); ?>" style="top: 0;">?</a>
60
  <div class="switcher-target-coperate_php" style="margin-top:5px;">
61
  <div class="wpallexport-free-edition-notice" style="margin: 15px 0;">
62
- <a class="upgrade_link" target="_blank" href="https://www.wpallimport.com/checkout/?edd_action=add_to_cart&download_id=118611&edd_options%5Bprice_id%5D=1&utm_source=wordpress.org&utm_medium=custom-php&utm_campaign=free+wp+all+export+plugin"><?php _e('Upgrade to Pro to use Custom PHP Functions','wp_all_export_plugin');?></a>
63
  </div>
64
  <?php echo "&lt;?php ";?>
65
  <input type="text" class="php_code" value="" style="width:50%;" placeholder='your_function_name'/>
1
  <div class="wp-all-export-advanced-field-options-content">
2
  <!-- Options for SQL field -->
3
+ <div class="input cc_field sql_field_type" style="margin-left:25px;">
4
  <a href="#help" rel="sql" class="help" style="display:none;" title="<?php _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_plugin'); ?>">?</a>
5
  <textarea style="width:100%;" rows="5" class="column_value"></textarea>
6
  </div>
7
  <!-- Options for ACF Repeater field -->
8
+ <div class="input cc_field repeater_field_type" style="margin-left:25px;">
9
  <input type="hidden" name="repeater_field_item_per_line" value="0"/>
10
  <input type="checkbox" id="repeater_field_item_per_line" class="switcher" name="repeater_field_item_per_line" value="1" style="margin: 2px;"/>
11
  <label for="repeater_field_item_per_line"><?php _e("Display each repeater row in its own csv line", "wp_all_export_plugin"); ?></label>
17
  </div>
18
  </div>
19
  <!-- Options for Image field from Media section -->
20
+ <div class="input cc_field image_field_type" style="margin-left:25px;">
21
  <div class="input">
22
  <input type="hidden" name="image_field_is_export_featured" value="0"/>
23
  <input type="checkbox" id="is_image_export_featured" name="image_field_is_export_featured" value="1" style="margin: 2px;" checked="checked"/>
32
  <input type="text" name="image_field_separator" value="|" style="width: 40px; text-align:center;">
33
  </div>
34
  </div>
35
+ </div>
36
+
37
  <!-- Options for Date field -->
38
+ <div class="input cc_field wpae-select-field date_field_type" style="margin-left:25px;">
39
+ <select class="date_field_export_data" style="width: 100%;">
40
  <option value="unix"><?php _e("UNIX timestamp - PHP time()", "wp_all_export_plugin");?></option>
41
  <option value="php"><?php _e("Natural Language PHP date()", "wp_all_export_plugin");?></option>
42
  </select>
43
  <div class="input pmxe_date_format_wrapper">
44
  <label style="padding:4px; display: block;"><?php _e("date() Format", "wp_all_export_plugin"); ?></label>
45
+ <input type="text" class="pmxe_date_format" value="" placeholder="Y-m-d"/>
46
  </div>
47
  </div>
48
  <!-- Options for Up/Cross sells products -->
49
+ <div class="input cc_field linked_field_type" style="margin-left:25px;">
50
  <select class="linked_field_export_data" style="width: 100%; height: 30px;">
51
  <option value="sku"><?php _e("Product SKU", "wp_all_export_plugin");?></option>
52
  <option value="id"><?php _e("Product ID", "wp_all_export_plugin");?></option>
60
  <a href="#help" class="wpallexport-help" title="<?php _e('The value of the field chosen for export will be passed to the PHP function.', 'wp_all_export_plugin'); ?>" style="top: 0;">?</a>
61
  <div class="switcher-target-coperate_php" style="margin-top:5px;">
62
  <div class="wpallexport-free-edition-notice" style="margin: 15px 0;">
63
+ <a class="upgrade_link" target="_blank" href="https://www.wpallimport.com/checkout/?edd_action=add_to_cart&download_id=118611&edd_options%5Bprice_id%5D=1&utm_source=export-plugin-free&utm_medium=upgrade-notice&utm_campaign=custom-php"><?php _e('Upgrade to Pro to use Custom PHP Functions','wp_all_export_plugin');?></a>
64
  </div>
65
  <?php echo "&lt;?php ";?>
66
  <input type="text" class="php_code" value="" style="width:50%;" placeholder='your_function_name'/>
views/admin/export/template/functions_editor.php CHANGED
@@ -23,7 +23,7 @@
23
  <div class="wpallexport-collapsed-content-inner" style="padding-top:0;">
24
  <textarea id="wp_all_export_code" name="wp_all_export_code"><?php echo (empty($functions_content)) ? "<?php\n\n?>": esc_textarea($functions_content);?></textarea>
25
  <div class="wpallexport-free-edition-notice php-functions-upgrade" style="margin: 15px 0; display: none;">
26
- <a class="upgrade_link" target="_blank" href="https://www.wpallimport.com/checkout/?edd_action=add_to_cart&download_id=118611&edd_options%5Bprice_id%5D=1&utm_source=wordpress.org&utm_medium=custom-php&utm_campaign=free+wp+all+export+plugin" style="font-size: 1.3em;"><?php _e('Upgrade to Pro to use Custom PHP Functions','wp_all_export_plugin');?></a>
27
  <p><?php _e('If you already own it, remove the free edition and install the Pro edition.','wp_all_export_plugin');?></p>
28
  </div>
29
  </div>
23
  <div class="wpallexport-collapsed-content-inner" style="padding-top:0;">
24
  <textarea id="wp_all_export_code" name="wp_all_export_code"><?php echo (empty($functions_content)) ? "<?php\n\n?>": esc_textarea($functions_content);?></textarea>
25
  <div class="wpallexport-free-edition-notice php-functions-upgrade" style="margin: 15px 0; display: none;">
26
+ <a class="upgrade_link" target="_blank" href="https://www.wpallimport.com/checkout/?edd_action=add_to_cart&download_id=118611&edd_options%5Bprice_id%5D=1&utm_source=export-plugin-free&utm_medium=upgrade-notice&utm_campaign=custom-php" style="font-size: 1.3em;"><?php _e('Upgrade to Pro to use Custom PHP Functions','wp_all_export_plugin');?></a>
27
  <p><?php _e('If you already own it, remove the free edition and install the Pro edition.','wp_all_export_plugin');?></p>
28
  </div>
29
  </div>
views/admin/feedback/index.php CHANGED
@@ -8,7 +8,7 @@
8
  <td class="left">
9
  <p style="font-size: 1.3em !important;">
10
  <b>E-mail</b> - <a href="mailto:support@wpallimport.com?Subject=WP%20All%20Export%20feedback">support@wpallimport.com</a><br>
11
- <b>Support Form </b> - <a target="_blank" href="http://www.wpallimport.com/support/?utm_source=wordpress.org&utm_medium=feedback-page&utm_campaign=free+wp+all+export+plugin">http://www.wpallimport.com/support</a>
12
  </p>
13
 
14
  <p style="font-size: 1.3em !important;">Thanks for using WP All Export.</p>
8
  <td class="left">
9
  <p style="font-size: 1.3em !important;">
10
  <b>E-mail</b> - <a href="mailto:support@wpallimport.com?Subject=WP%20All%20Export%20feedback">support@wpallimport.com</a><br>
11
+ <b>Support Form </b> - <a target="_blank" href="http://www.wpallimport.com/support/?utm_source=export-plugin-free&utm_medium=feedback&utm_campaign=premium-support">http://www.wpallimport.com/support/</a>
12
  </p>
13
 
14
  <p style="font-size: 1.3em !important;">Thanks for using WP All Export.</p>
views/admin/google/indexbck.php CHANGED
@@ -26,7 +26,7 @@ if(getenv('WPAE_DEV')) {
26
  <h2>Export to XML / CSV</h2>
27
  </div>
28
  <div class="wpallexport-links">
29
- <a href="http://www.wpallimport.com/support/" target="_blank">Support</a> | <a href="http://www.wpallimport.com/documentation/" target="_blank">Documentation</a>
30
  </div>
31
  </div>
32
  <div class="clear"></div>
26
  <h2>Export to XML / CSV</h2>
27
  </div>
28
  <div class="wpallexport-links">
29
+ <a href="http://www.wpallimport.com/support/?utm_source=export-plugin-free&utm_medium=help&utm_campaign=premium-support" target="_blank">Support</a> | <a href="http://www.wpallimport.com/documentation/?utm_source=export-plugin-free&utm_medium=help&utm_campaign=docs" target="_blank">Documentation</a>
30
  </div>
31
  </div>
32
  <div class="clear"></div>
views/admin/help/index.php CHANGED
@@ -7,14 +7,14 @@
7
  <tr>
8
  <td class="left">
9
  <p style="font-size: 1.3em !important;">
10
- <b>Support Form </b> - <a target="_blank" href="http://www.wpallimport.com/support/?utm_source=wordpress.org&utm_medium=support-page&utm_campaign=free+wp+all+export+plugin">http://www.wpallimport.com/support</a>
11
  </p>
12
 
13
  <p style="font-size: 1.3em !important;"><?php _e('Thank you for using WP All Export.', 'wp_all_export_plugin');?></p>
14
 
15
  <p style="font-size: 1.3em !important;"><?php _e('While we do our best to provide technical support to users of the free version, we must prioritize requests from Pro users. If you need help with WP All Export please submit a ticket through the support form.', 'wp_all_export_plugin');?></p>
16
 
17
- <p style="font-size: 1.3em !important;"><a href="https://www.wpallimport.com/checkout/?edd_action=add_to_cart&download_id=118611&edd_options%5Bprice_id%5D=1&utm_source=wordpress.org&utm_medium=support-page&utm_campaign=free+wp+all+export+plugin" target="_blank"><?php _e('Upgrade to the Pro edition of WP All Export for Premium Support', 'wp_all_export_plugin');?></a></p>
18
 
19
  </td>
20
  <td class="right">&nbsp;</td>
7
  <tr>
8
  <td class="left">
9
  <p style="font-size: 1.3em !important;">
10
+ <b>Support Form </b> - <a target="_blank" href="http://www.wpallimport.com/support/?utm_source=export-plugin-free&utm_medium=help&utm_campaign=premium-support">http://www.wpallimport.com/support/</a>
11
  </p>
12
 
13
  <p style="font-size: 1.3em !important;"><?php _e('Thank you for using WP All Export.', 'wp_all_export_plugin');?></p>
14
 
15
  <p style="font-size: 1.3em !important;"><?php _e('While we do our best to provide technical support to users of the free version, we must prioritize requests from Pro users. If you need help with WP All Export please submit a ticket through the support form.', 'wp_all_export_plugin');?></p>
16
 
17
+ <p style="font-size: 1.3em !important;"><a href="https://www.wpallimport.com/checkout/?edd_action=add_to_cart&download_id=118611&edd_options%5Bprice_id%5D=1&utm_source=export-plugin-free&utm_medium=help&utm_campaign=premium-support" target="_blank"><?php _e('Upgrade to the Pro edition of WP All Export for Premium Support', 'wp_all_export_plugin');?></a></p>
18
 
19
  </td>
20
  <td class="right">&nbsp;</td>
views/admin/manage/index.php CHANGED
@@ -1,3 +1,6 @@
 
 
 
1
  <div class="wpallexport-header" style="overflow:hidden; height: 60px; padding-top: 10px; margin-bottom: -20px;">
2
  <div class="wpallexport-logo"></div>
3
  <div class="wpallexport-title">
@@ -176,7 +179,21 @@ $columns = apply_filters('pmxe_manage_imports_columns', $columns);
176
  case 'info':
177
  ?>
178
  <td style="min-width: 180px;">
179
- <a href="#" class="open_cron_scheduling"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
180
  data-itemid="<?php echo $item['id']; ?>"><?php _e('Scheduling Options', 'wp_all_export_plugin'); ?></a>
181
  <br>
182
  <?php
1
+ <?php
2
+ $addons = new \Wpae\App\Service\Addons\AddonService();
3
+ ?>
4
  <div class="wpallexport-header" style="overflow:hidden; height: 60px; padding-top: 10px; margin-bottom: -20px;">
5
  <div class="wpallexport-logo"></div>
6
  <div class="wpallexport-title">
179
  case 'info':
180
  ?>
181
  <td style="min-width: 180px;">
182
+ <a <?php
183
+ if (!is_array($item['options']['cpt'])) {
184
+ $item['options']['cpt'] = array($item['options']['cpt']);
185
+ }
186
+ if (
187
+ ((in_array('users', $item['options']['cpt']) || in_array('shop_customer', $item['options']['cpt'])) && !$addons->isUserAddonActive()) ||
188
+ ($item['options']['export_type'] == 'advanced' && $item['options']['wp_query_selector'] == 'wp_user_query' && !$addons->isUserAddonActive())
189
+ ) {
190
+ ?>
191
+ href="<?php echo esc_url(add_query_arg(array('id' => $item['id'], 'action' => 'update'), $this->baseUrl)) ?>"
192
+ <?php
193
+ } else {
194
+ ?>
195
+ href="#" class="open_cron_scheduling"
196
+ <?php } ?>
197
  data-itemid="<?php echo $item['id']; ?>"><?php _e('Scheduling Options', 'wp_all_export_plugin'); ?></a>
198
  <br>
199
  <?php
views/admin/manage/scheduling.php CHANGED
@@ -51,7 +51,7 @@
51
  </p>
52
 
53
  <p>
54
- See the <a href='http://www.wpallimport.com/documentation/recurring/cron/'>documentation</a> for more details.
55
  </p>
56
 
57
  <a href="http://soflyy.com/" target="_blank" class="wpallexport-created-by"><?php _e('Created by', 'wp_all_export_plugin'); ?> <span></span></a>
51
  </p>
52
 
53
  <p>
54
+ See the <a href='http://www.wpallimport.com/documentation/recurring/cron/?utm_source=export-plugin-free&utm_medium=help&utm_campaign=manual-scheduling'>documentation</a> for more details.
55
  </p>
56
 
57
  <a href="http://soflyy.com/" target="_blank" class="wpallexport-created-by"><?php _e('Created by', 'wp_all_export_plugin'); ?> <span></span></a>
views/admin/manage/update.php CHANGED
@@ -22,7 +22,7 @@ $l10n = array(
22
  <h2><?php _e('Export to XML / CSV', 'wp_all_export_plugin'); ?></h2>
23
  </div>
24
  <div class="wpallexport-links">
25
- <a href="http://www.wpallimport.com/support/" target="_blank"><?php _e('Support', 'wp_all_export_plugin'); ?></a> | <a href="http://www.wpallimport.com/documentation/" target="_blank"><?php _e('Documentation', 'wp_all_export_plugin'); ?></a>
26
  </div>
27
  </div>
28
  <div class="clear"></div>
@@ -63,9 +63,10 @@ $l10n = array(
63
 
64
  <form class="<?php echo ! $isWizard ? 'edit' : 'options' ?> choose-export-options" method="post" enctype="multipart/form-data" autocomplete="off" <?php echo ! $isWizard ? 'style="overflow:visible;"' : '' ?>>
65
 
66
- <?php
 
67
  $selected_post_type = '';
68
- if (XmlExportUser::$is_active):
69
  $selected_post_type = empty($post['cpt'][0]) ? 'users' : $post['cpt'][0];
70
  endif;
71
  if (XmlExportComment::$is_active):
22
  <h2><?php _e('Export to XML / CSV', 'wp_all_export_plugin'); ?></h2>
23
  </div>
24
  <div class="wpallexport-links">
25
+ <a href="http://www.wpallimport.com/support/?utm_source=export-plugin-free&utm_medium=help&utm_campaign=premium-support" target="_blank"><?php _e('Support', 'wp_all_export_plugin'); ?></a> | <a href="http://www.wpallimport.com/documentation/?utm_source=export-plugin-free&utm_medium=help&utm_campaign=docs" target="_blank"><?php _e('Documentation', 'wp_all_export_plugin'); ?></a>
26
  </div>
27
  </div>
28
  <div class="clear"></div>
63
 
64
  <form class="<?php echo ! $isWizard ? 'edit' : 'options' ?> choose-export-options" method="post" enctype="multipart/form-data" autocomplete="off" <?php echo ! $isWizard ? 'style="overflow:visible;"' : '' ?>>
65
 
66
+ <?php
67
+ $addons = new \Wpae\App\Service\Addons\AddonService();
68
  $selected_post_type = '';
69
+ if ($addons->isUserAddonActive() && XmlExportUser::$is_active):
70
  $selected_post_type = empty($post['cpt'][0]) ? 'users' : $post['cpt'][0];
71
  endif;
72
  if (XmlExportComment::$is_active):
views/admin/settings/index.php CHANGED
@@ -128,7 +128,7 @@
128
  </table>
129
 
130
  <div class="wpallexport-free-edition-notice zapier-upgrade" style="margin: 15px 0; padding: 20px; display: none;">
131
- <a class="upgrade_link" target="_blank" href="https://www.wpallimport.com/checkout/?edd_action=add_to_cart&download_id=118611&edd_options%5Bprice_id%5D=1&utm_source=wordpress.org&utm_medium=custom-php&utm_campaign=free+wp+all+export+plugin"><?php _e('Upgrade to the Pro edition of WP All Export for Zapier Integration','wp_all_export_plugin');?></a>
132
  <p><?php _e('If you already own it, remove the free edition and install the Pro edition.', 'wp_all_export_plugin'); ?></p>
133
  </div>
134
 
@@ -160,7 +160,7 @@
160
  $scheduling = \Wpae\Scheduling\Scheduling::create();
161
  if(!($scheduling->checkLicense())){
162
  ?>
163
- <p class="description"><?php _e('A license key is required to use Automatic Scheduling. If you have already subscribed, <a href="https://www.wpallimport.com/portal/automatic-scheduling/" target="_blank">click here to access your license key</a>. If you dont have a license, <a href="https://www.wpallimport.com/checkout/?edd_action=add_to_cart&download_id=515704" target="_blank">click here to subscribe</a>.', 'wp_all_export_plugin'); ?></p>
164
  <?php
165
  }
166
  ?>
@@ -188,7 +188,7 @@
188
 
189
  <textarea id="wp_all_export_code" name="wp_all_export_code"><?php echo "<?php\n\n?>";?></textarea>
190
  <div class="wpallexport-free-edition-notice php-functions-upgrade" style="margin: 15px 0; padding: 20px; display: none;">
191
- <a class="upgrade_link" target="_blank" href="https://www.wpallimport.com/checkout/?edd_action=add_to_cart&download_id=118611&edd_options%5Bprice_id%5D=1&utm_source=wordpress.org&utm_medium=custom-php&utm_campaign=free+wp+all+export+plugin"><?php _e('Upgrade to the Pro edition of WP All Export to enable the Function Editor','wp_all_export_plugin');?></a>
192
  <p><?php _e('If you already own it, remove the free edition and install the Pro edition.', 'wp_all_export_plugin'); ?></p>
193
  </div>
194
 
128
  </table>
129
 
130
  <div class="wpallexport-free-edition-notice zapier-upgrade" style="margin: 15px 0; padding: 20px; display: none;">
131
+ <a class="upgrade_link" target="_blank" href="https://www.wpallimport.com/checkout/?edd_action=add_to_cart&download_id=118611&edd_options%5Bprice_id%5D=1&utm_source=export-plugin-free&utm_medium=upgrade-notice&utm_campaign=zapier"><?php _e('Upgrade to the Pro edition of WP All Export for Zapier Integration','wp_all_export_plugin');?></a>
132
  <p><?php _e('If you already own it, remove the free edition and install the Pro edition.', 'wp_all_export_plugin'); ?></p>
133
  </div>
134
 
160
  $scheduling = \Wpae\Scheduling\Scheduling::create();
161
  if(!($scheduling->checkLicense())){
162
  ?>
163
+ <p class="description"><?php _e('A license key is required to use Automatic Scheduling. If you have already subscribed, <a href="https://www.wpallimport.com/portal/automatic-scheduling/" target="_blank">click here to access your license key</a>. If you dont have a license, <a href="https://www.wpallimport.com/checkout/?edd_action=add_to_cart&download_id=515704&utm_source=export-plugin-free&utm_medium=upgrade-notice&utm_campaign=automatic-scheduling" target="_blank">click here to subscribe</a>.', 'wp_all_export_plugin'); ?></p>
164
  <?php
165
  }
166
  ?>
188
 
189
  <textarea id="wp_all_export_code" name="wp_all_export_code"><?php echo "<?php\n\n?>";?></textarea>
190
  <div class="wpallexport-free-edition-notice php-functions-upgrade" style="margin: 15px 0; padding: 20px; display: none;">
191
+ <a class="upgrade_link" target="_blank" href="https://www.wpallimport.com/checkout/?edd_action=add_to_cart&download_id=118611&edd_options%5Bprice_id%5D=1&utm_source=export-plugin-free&utm_medium=upgrade-notice&utm_campaign=function-editor"><?php _e('Upgrade to the Pro edition of WP All Export to enable the Function Editor','wp_all_export_plugin');?></a>
192
  <p><?php _e('If you already own it, remove the free edition and install the Pro edition.', 'wp_all_export_plugin'); ?></p>
193
  </div>
194
 
views/controller/error.php CHANGED
File without changes
wp-all-export.php CHANGED
@@ -1,9 +1,9 @@
1
  <?php
2
  /*
3
  Plugin Name: WP All Export
4
- Plugin URI: http://www.wpallimport.com/export/
5
  Description: Export any post type to a CSV or XML file. Edit the exported data, and then re-import it later using WP All Import.
6
- Version: 1.2.3
7
  Author: Soflyy
8
  */
9
 
@@ -59,7 +59,7 @@ else {
59
  */
60
  define('PMXE_PREFIX', 'pmxe_');
61
 
62
- define('PMXE_VERSION', '1.2.3');
63
 
64
  define('PMXE_EDITION', 'free');
65
 
@@ -187,12 +187,14 @@ else {
187
  // init plugin options
188
  $option_name = get_class($this) . '_Options';
189
  $options_default = PMXE_Config::createFromFile(self::ROOT_DIR . '/config/options.php')->toArray();
190
- $this->options = array_intersect_key(get_option($option_name, array()), $options_default) + $options_default;
 
191
  $this->options = array_intersect_key($options_default, array_flip(array('info_api_url'))) + $this->options; // make sure hidden options apply upon plugin reactivation
192
  if ('' == $this->options['cron_job_key']) $this->options['cron_job_key'] = wp_all_export_url_title(wp_all_export_rand_char(12));
193
 
194
- update_option($option_name, $this->options);
195
- $this->options = get_option(get_class($this) . '_Options');
 
196
  register_activation_hook(self::FILE, array($this, 'activation'));
197
 
198
  // register action handlers
@@ -398,8 +400,29 @@ else {
398
 
399
  $controller = new $controllerName();
400
  if ( ! $controller instanceof PMXE_Controller_Admin) {
401
- throw new Exception("Administration page `$page` matches to a wrong controller type.");
402
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
403
 
404
  if ($this->_admin_current_screen->is_ajax) { // ajax request
405
  $controller->$action();
@@ -698,7 +721,7 @@ else {
698
  $wpdb->query("ALTER TABLE {$table} ADD `parent_id` BIGINT(20) NOT NULL DEFAULT 0;");
699
  }
700
  if ( ! $export_post_type ){
701
- $wpdb->query("ALTER TABLE {$table} ADD `export_post_type` VARCHAR(64) NOT NULL DEFAULT '';");
702
  }
703
 
704
  update_option( "wp_all_export_db_version", PMXE_VERSION );
@@ -877,6 +900,6 @@ else {
877
 
878
  // Include the api front controller
879
  include_once('wpae_api.php');
880
-
881
  }
882
 
1
  <?php
2
  /*
3
  Plugin Name: WP All Export
4
+ Plugin URI: http://www.wpallimport.com/upgrade-to-wp-all-export-pro/?utm_source=export-plugin-free&utm_medium=wp-plugins-page&utm_campaign=upgrade-to-pro
5
  Description: Export any post type to a CSV or XML file. Edit the exported data, and then re-import it later using WP All Import.
6
+ Version: 1.2.4
7
  Author: Soflyy
8
  */
9
 
59
  */
60
  define('PMXE_PREFIX', 'pmxe_');
61
 
62
+ define('PMXE_VERSION', '1.2.4');
63
 
64
  define('PMXE_EDITION', 'free');
65
 
187
  // init plugin options
188
  $option_name = get_class($this) . '_Options';
189
  $options_default = PMXE_Config::createFromFile(self::ROOT_DIR . '/config/options.php')->toArray();
190
+ $current_options = get_option($option_name, array());
191
+ $this->options = array_intersect_key($current_options, $options_default) + $options_default;
192
  $this->options = array_intersect_key($options_default, array_flip(array('info_api_url'))) + $this->options; // make sure hidden options apply upon plugin reactivation
193
  if ('' == $this->options['cron_job_key']) $this->options['cron_job_key'] = wp_all_export_url_title(wp_all_export_rand_char(12));
194
 
195
+ if ($current_options !== $this->options) {
196
+ update_option($option_name, $this->options);
197
+ }
198
  register_activation_hook(self::FILE, array($this, 'activation'));
199
 
200
  // register action handlers
400
 
401
  $controller = new $controllerName();
402
  if ( ! $controller instanceof PMXE_Controller_Admin) {
403
+ throw new Exception("Administration page `$page` matches to a wrong controller type.");
404
+ }
405
+
406
+ if($controller instanceof PMXE_Admin_Manage && ($action == 'update' || $action == 'template' || $action == 'options') && isset($_GET['id'])) {
407
+ $addons = new \Wpae\App\Service\Addons\AddonService();
408
+ $exportId = intval($_GET['id']);
409
+
410
+ $export = new \PMXE_Export_Record();
411
+ $export->getById($exportId);
412
+
413
+ $cpt = $export->options['cpt'];
414
+ if (!is_array($cpt)) {
415
+ $cpt = array($cpt);
416
+ }
417
+
418
+ if (
419
+ ((in_array('users', $cpt) || in_array('shop_customer', $cpt)) && !$addons->isUserAddonActive()) ||
420
+ ($export->options['export_type'] == 'advanced' && $export->options['wp_query_selector'] == 'wp_user_query' && !$addons->isUserAddonActive())
421
+ ) {
422
+ die(\__('The User Export Add-On Pro is required to run this export. You can download the add-on here: <a href="http://www.wpallimport.com/portal/" target="_blank">http://www.wpallimport.com/portal/</a>', \PMXE_Plugin::LANGUAGE_DOMAIN));
423
+ }
424
+ }
425
+
426
 
427
  if ($this->_admin_current_screen->is_ajax) { // ajax request
428
  $controller->$action();
721
  $wpdb->query("ALTER TABLE {$table} ADD `parent_id` BIGINT(20) NOT NULL DEFAULT 0;");
722
  }
723
  if ( ! $export_post_type ){
724
+ $wpdb->query("ALTER TABLE {$table} ADD `export_post_type` TEXT NOT NULL DEFAULT '';");
725
  }
726
 
727
  update_option( "wp_all_export_db_version", PMXE_VERSION );
900
 
901
  // Include the api front controller
902
  include_once('wpae_api.php');
903
+
904
  }
905