Changeset 3084750
- Timestamp:
- 05/10/2024 10:05:00 PM (3 months ago)
- Location:
- woo-order-export
- Files:
-
- 89 added
- 4 deleted
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
woo-order-export/trunk/readme.txt
r3083586 r3084750 3 3 Plugin URI: https://wpessential.org/ 4 4 Description: WPEssential Order Export for WooCommerce used to export the WooCommerce orders with all details. It has the option to export the order from a selectable date range and order status base. 5 5 6 Version: 3.1 6 7 Author: WPEssential … … 8 9 Text Domain: wpessential-order-export-for-woocommerce 9 10 Requires at least: 5.7 10 Stable tag: 3.111 Stable tag: 11 12 Tested up to: 6.5 12 13 License: GPLv2 or later -
woo-order-export/trunk/wpessential-order-export-for-woocommerce.php
r3083561 r3084750 4 4 * Plugin URI: https://wpessential.org/ 5 5 * Description: WPEssential Order Export for WooCommerce used to export the WooCommerce orders with all details. It has the option to export the order from a selectable date range and order status base. 6 * Version: 3.16 * Version: 7 7 * Author: WPEssential 8 8 * Author URI: https://wpessential.org/ … … 17 17 */ 18 18 19 20 19 21 if ( ! defined( 'ABSPATH' ) ) { 20 22 exit; // Exit if accessed directly. 21 23 } 22 24 23 /** 24 * Define the plugin directory url in http:// or https:// base 25 * 26 * @since 1.0.0 27 */ 28 if ( ! defined( 'WOE_PLUGIN_FILE' ) ) { 29 define( 'WOE_PLUGIN_FILE', plugin_dir_url( __FILE__ ) ); 30 } 31 32 /** 33 * Define the plugin directory path 34 * 35 * @since 1.0.0 36 */ 37 if ( ! defined( 'WOE_PLUGIN_DIR' ) ) { 38 define( 'WOE_PLUGIN_DIR', plugin_dir_path( __FILE__ ) ); 39 } 40 41 /** 42 * Define the plugin data info 43 * 44 * @since 1.0.0 45 */ 46 if ( ! defined( 'WOE_PLUGIN_DETAIL' ) ) { 47 if ( ! function_exists( 'get_plugin_data' ) ) { 48 require_once( ABSPATH . 'wp-admin/includes/plugin.php' ); 49 } 50 define( 'WOE_PLUGIN_DETAIL', get_plugin_data( __FILE__ ) ); 51 } 25 require_once plugin_dir_path( __FILE__ ) . 'constants.php'; 52 26 53 27 /** … … 79 53 if ( ! function_exists( 'WC' ) ) { 80 54 add_action( 'admin_notices', 'woo_order_export_swatches_wc_notice' ); 81 } else { 82 require_once WOE_PLUGIN_DIR . 'includes/front-end/classes/class-woo-order-export.php'; 55 } 56 else { 57 OrderExportForWooCommerceInit::constructor(); 83 58 } 84 59 } 85 60 } 86 61 87 /** 88 * Hook the plugin language translation file 89 * 90 * @return void. 91 * @since 1.0.0 92 */ 93 if ( ! function_exists( 'woo_order_export_language' ) ) { 94 function woo_order_export_language () 95 { 96 load_plugin_textdomain( 'wpessential-order-export-for-woocommerce', false, WOE_PLUGIN_DIR . 'language' ); 97 } 98 } 62 require_once WPEOEFW_DIR . 'install.php'; 63 require_once WPEOEFW_DIR . 'uninstall.php'; 64 require_once WPEOEFW_DIR . 'vendor/autoload.php'; 65 add_action( 'plugins_loaded', 'woo_order_export_swatches_constructor', 20 ); 99 66 100 /** 101 * Create the plugin download files directory in the upload directory 102 * 103 * @return void. 104 * @since 1.0.0 105 */ 106 if ( ! function_exists( 'create_dir' ) ) { 107 function create_dir () 108 { 109 $dir_check = wp_get_upload_dir()[ 'basedir' ] . '/woo-roder-export'; 110 if ( ! is_dir( $dir_check ) ) { 111 wp_mkdir_p( $dir_check ); 112 } 113 } 114 } 115 116 add_action( 'init', 'woo_order_export_language' ); 117 add_action( 'plugins_loaded', 'woo_order_export_swatches_constructor', 20 ); 118 register_activation_hook( __FILE__, 'create_dir' ); 67 register_activation_hook( __FILE__, 'wpeoefw_install' ); 68 register_deactivation_hook( __FILE__, 'wpeoefw_unsintall' );
Note: See TracChangeset
for help on using the changeset viewer.