Plugin Directory

Changeset 3084750

Timestamp:
05/10/2024 10:05:00 PM (3 months ago)
Author:
wpessential
Message:

updating the structure and files

Location:
woo-order-export
Files:
89 added
4 deleted
2 edited

Legend:

Unmodified
Added
Removed
  • woo-order-export/trunk/readme.txt

    r3083586 r3084750  
    33Plugin URI: https://wpessential.org/
    44Description: 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
    56Version: 3.1
    67Author: WPEssential
     
    89Text Domain: wpessential-order-export-for-woocommerce
    910Requires at least: 5.7
    10 Stable tag: 3.1
     11Stable tag:
    1112Tested up to: 6.5
    1213License: GPLv2 or later
  • woo-order-export/trunk/wpessential-order-export-for-woocommerce.php

    r3083561 r3084750  
    44 * Plugin URI: https://wpessential.org/
    55 * 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.1
     6 * Version:
    77 * Author: WPEssential
    88 * Author URI: https://wpessential.org/
     
    1717 */
    1818
     19
     20
    1921if ( ! defined( 'ABSPATH' ) ) {
    2022    exit; // Exit if accessed directly.
    2123}
    2224
    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 }
     25require_once plugin_dir_path( __FILE__ ) . 'constants.php';
    5226
    5327/**
     
    7953        if ( ! function_exists( 'WC' ) ) {
    8054            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();
    8358        }
    8459    }
    8560}
    8661
    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 }
     62require_once WPEOEFW_DIR . 'install.php';
     63require_once WPEOEFW_DIR . 'uninstall.php';
     64require_once WPEOEFW_DIR . 'vendor/autoload.php';
     65add_action( 'plugins_loaded', 'woo_order_export_swatches_constructor', 20 );
    9966
    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' );
     67register_activation_hook( __FILE__, 'wpeoefw_install' );
     68register_deactivation_hook( __FILE__, 'wpeoefw_unsintall' );
Note: See TracChangeset for help on using the changeset viewer.