PluginProbe
Export All Posts, Products, Orders & Users | WP Ultimate Exporter | WordPress CSV Export / 2.0
Export All Posts, Products, Orders & Users | WP Ultimate Exporter | WordPress CSV Export v2.0
3.0 2.24.2 2.24.1 1.7.2 1.7.3 1.7.4 1.7.5 1.7.6 1.7.7 1.7.8 1.7.9 2.0 2.0.1 2.1 2.1.1 2.1.2 2.10 2.11 2.12 2.13 2.14 2.15 2.16 2.16.1 2.16.2 All 96 releases
wp-ultimate-exporter / wp-ultimate-exporter.php

wp-ultimate-exporter.php in Export All Posts, Products, Orders & Users | WP Ultimate Exporter | WordPress CSV Export 2.0, at wp-ultimate-exporter.php

129 lines 4.3 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * WP Ultimate Exporter.
4 *
5 * WP Ultimate Exporter plugin file.
6 *
7 * @package Smackcoders\SMEXP
8 * @copyright Copyright (C) 2010-2020, Smackcoders Inc - info@smackcoders.com
9 * @license https://www.gnu.org/licenses/gpl-3.0.html GNU General Public License, version 3 or higher
10 *
11 * @wordpress-plugin
12 * Plugin Name: WP Ultimate Exporter
13 * Version: 2.0
14 * Plugin URI: https://www.smackcoders.com/ultimate-exporter.html
15 * Description: Backup tool to export all your WordPress data as CSV file. eCommerce data of WooCommerce, eCommerce, Custom Post and Custom field information along with default WordPress modules.
16 * Author: Smackcoders
17 * Author URI: https://www.smackcoders.com/wordpress.html
18 * Text Domain: wp-ultimate-exporter
19 * Domain Path: /languages
20 * License: GPL v3
21 *
22 * This program is free software: you can redistribute it and/or modify
23 * it under the terms of the GNU General Public License as published by
24 * the Free Software Foundation, either version 3 of the License, or
25 * (at your option) any later version.
26 *
27 * This program is distributed in the hope that it will be useful,
28 * but WITHOUT ANY WARRANTY; without even the implied warranty of
29 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
30 * GNU General Public License for more details.
31 *
32 * You should have received a copy of the GNU General Public License
33 * along with this program. If not, see <https://www.gnu.org/licenses/>.
34 */
35
36 namespace Smackcoders\SMEXP;
37
38 if ( ! defined( 'ABSPATH' ) )
39 exit; // Exit if accessed directly
40
41 require_once('Plugin.php');
42 require_once('SmackExporterInstall.php');
43 require_once('exportExtensions/ExportExtension.php');
44
45 if ( ! function_exists( 'is_plugin_active' ) ) {
46 require_once ABSPATH . 'wp-admin/includes/plugin.php';
47 }
48
49 if (is_plugin_active('wp-ultimate-exporter/wp-ultimate-exporter.php')) {
50 $plugin_pages = ['com.smackcoders.csvimporternew.menu'];
51 include __DIR__ . '/wp-exp-hooks.php';
52 global $plugin_ajax_hooks;
53
54 $request_page = isset($_REQUEST['page']) ? $_REQUEST['page'] : '';
55 $request_action = isset($_REQUEST['action']) ? $_REQUEST['action'] : '';
56 if (in_array($request_page, $plugin_pages) || in_array($request_action, $plugin_ajax_hooks)) {
57 require_once('exportExtensions/jetengine.php');
58 require_once('exportExtensions/learnpress.php');
59 require_once('exportExtensions/metabox.php');
60 require_once('exportExtensions/ExportHandler.php');
61 require_once('exportExtensions/CustomerReviewsExport.php');
62 require_once('exportExtensions/PostExport.php');
63 require_once('exportExtensions/WooComExport.php');
64
65 }
66 }
67
68 if(! class_exists('Smackcoders\SMEXP\ExportExtension')){
69 ExpInstall::init(plugin_basename( __FILE__ ));
70 add_action( 'admin_notices', 'Smackcoders\\SMEXP\\Notice_msg_exporter_free' );
71 }
72 else {
73 class ExpCSVHandler extends ExportExtension{
74
75 protected static $instance = null,$install,$exp_instance;
76 public $version = '1.7.7';
77
78 public function __construct(){
79 $this->plugin = Plugin::getInstance();
80 }
81
82 public static function getInstance() {
83 if (ExpCSVHandler::$instance == null) {
84 ExpCSVHandler::$instance = new ExpCSVHandler;
85 ExpCSVHandler::$install = ExpInstall::getInstance();
86 ExpCSVHandler::$exp_instance = ExportExtension::getInstance();
87
88 return ExpCSVHandler::$instance;
89 }
90 return ExpCSVHandler::$instance;
91 }
92
93 /**
94 * Init UserSmCSVHandlerPro when WordPress Initialises.
95 */
96 public function init() {
97 if(is_admin()) {
98 // Init action.
99 do_action('uci_init');
100 }
101 }
102 }
103 }
104
105 add_action( 'plugins_loaded', 'Smackcoders\\SMEXP\\onpluginsload' );
106
107
108 function onpluginsload(){
109 $plugin_pages = ['com.smackcoders.csvimporternew.menu'];
110 include __DIR__ . '/wp-exp-hooks.php';
111 global $plugin_ajax_hooks;
112
113 $request_page = isset($_REQUEST['page']) ? $_REQUEST['page'] : '';
114 $request_action = isset($_REQUEST['action']) ? $_REQUEST['action'] : '';
115 if (in_array($request_page, $plugin_pages) || in_array($request_action, $plugin_ajax_hooks)) {
116 $plugin = ExpCSVHandler::getInstance();
117 }
118 }
119
120 function Notice_msg_exporter_free() {
121
122 ?>
123 <div class="notice notice-warning is-dismissible" >
124 <p> WP Ultimate Exporter is an addon of <a href="https://wordpress.org/plugins/wp-ultimate-csv-importer" target="blank" style="cursor: pointer;text-decoration:none">WP Ultimate CSV Importer</a> plugin, kindly install it to continue using WP ultimate exporter. </p>
125 </div>
126 <?php
127
128 }?>
129