golden hour
/home/godaofbq/beyondhyperbarics.com/wp-content/plugins/woocommerce-orders-ei
⬆️ Go Up
Upload
File/Folder
Size
Actions
classes
-
Del
OK
css
-
Del
OK
js
-
Del
OK
languages
-
Del
OK
orders-ei.php
3.03 KB
Del
OK
Edit: orders-ei.php
<?php /* Plugin Name: WooCommerce Orders & Customer exporter Description: Easily export WooCommerce orders & customers Author: Lagudi Domenico Version: 4.9 */ define('WCOEI_PLUGIN_PATH', rtrim(plugin_dir_url(__FILE__), "/") ) ; if ( !defined('WP_CLI') && ( in_array( 'woocommerce/woocommerce.php', apply_filters( 'active_plugins', get_option( 'active_plugins' ) ) ) || (is_multisite() && array_key_exists( 'woocommerce/woocommerce.php', get_site_option('active_sitewide_plugins') )) ) ) { //For some reasins the theme editor in some installtion won't work. This directive will prevent that. if(isset($_POST['action']) && $_POST['action'] == 'edit-theme-plugin-file') return; if(isset($_REQUEST ['context']) && $_REQUEST['context'] == 'edit') //rest api return; if(isset($_POST['action']) && strpos($_POST['action'], 'health-check') !== false) //health check return; if ( ! function_exists( 'wp_handle_upload' ) ) require_once( ABSPATH . 'wp-admin/includes/file.php' ); include 'classes/com/WCOEI_Globals.php'; if(!class_exists('WCOEI_Exporter')) require_once('classes/admin/WCOEI_Exporter.php'); $wcoei_order_exporter = new WCOEI_Exporter(); if(!class_exists('WCOEI_Order')) require_once('classes/com/WCOEI_Order.php'); $wcoei_order_model = new WCOEI_Order(); if(!class_exists('WCOEI_Customer')) require_once('classes/com/WCOEI_Customer.php'); $wcoei_customer_model = new WCOEI_Customer(); if(!class_exists('WCOEI_Product')) require_once('classes/com/WCOEI_Product.php'); $wcoei_product_model = new WCOEI_Product(); if(!class_exists('WCOEI_Wpml')) require_once('classes/com/WCOEI_Wpml.php'); $wcoei_wpml_helper = new WCOEI_Wpml(); if(!class_exists('WCOEI_Option')) require_once('classes/com/WCOEI_Option.php'); $wcoei_options = new WCOEI_Option(); if(!class_exists('WCOEI_Country')) require_once('classes/com/WCOEI_Country.php'); $wcoei_country_model = new WCOEI_Country(); wcoei_manage_actions_and_ajax(); add_action('admin_menu', 'wcoei_init_admin_panel'); add_action( 'wp_print_scripts', 'wcoei_unregister_css_and_js' ); add_action( 'init', 'wcoei_init' ); } function wcoei_init() { load_plugin_textdomain('woocommerce-orders-ei', false, basename( dirname( __FILE__ ) ) . '/languages' ); } function wcoei_unregister_css_and_js($enqueue_styles) { WCOEI_Exporter::force_dequeue_scripts($enqueue_styles); } function wcoei_init_admin_panel() { add_submenu_page('woocommerce', esc_html__('Orders/Customers export','woocommerce-orders-ei'), esc_html__('Orders/Customers export','woocommerce-orders-ei'), 'manage_woocommerce', 'woocommerce-orders-ei', 'wcoei_load_export_view'); } function wcoei_manage_actions_and_ajax() { if(isset($_GET['action'])) { switch($_GET['action']) { case 'import': break; } } } function wcoei_load_export_view() { global $wcoei_order_exporter; $wcoei_order_exporter->render_page(); } function wcoei_var_dump($var) { echo "<pre>"; var_dump($var); echo "</pre>"; } ?>
Save