Plugin Directory

Changeset 3418252


Ignore:
Timestamp:
12/12/2025 12:43:08 PM (4 months ago)
Author:
wpgenie2
Message:

versions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • simple-customer-csv-exporter-for-woocommerce/tags/1.1.1/simple-customer-csv-exporter-for-woocommerce.php

    r3394168 r3418252  
    44 * Plugin URI:  https://wordpress.org/plugins/search/simple-customer-csv-exporter-for-woocommerce/
    55 * Description: A WooCommerce plugin to list customers, filter by user's purchased products, with export to CSV.
    6  * 
     6 *
    77 * Version:     1.1.1
    8  * 
     8 *
    99 * Author:      wpgenie
    1010 * Author URI:  https://wpgenie.org
     
    1313 * Text Domain: simple-customer-csv-exporter-for-woocommerce
    1414 * Domain Path: /languages
    15  * 
     15 *
    1616 * WC requires at least: 5.0
    1717 * WC tested up to: 10.9
    18  * Requires Plugins: woocommerce
    19  *
     18 * Requires Plugins: WooCommerce
    2019 */
    2120
    2221// Exit if accessed directly.
    2322if ( ! defined( 'ABSPATH' ) ) {
    24     exit;
     23    exit;
    2524}
    2625
     
    4443
    4544if ( 'yes' === $hpos_enabled_option ) {
    46    
    47     require_once WCCE_PATH . 'includes/class-my-customer-exporter-hpos.php';
     45
     46    require_once WCCE_PATH . 'includes/class-my-customer-exporter-hpos.php';
    4847
    4948} else {
    5049
    51     require_once WCCE_PATH . 'includes/class-my-customer-exporter.php';
    52    
     50    require_once WCCE_PATH . 'includes/class-my-customer-exporter.php';
     51
    5352}
    5453
     
    6160 * @since    1.0.0
    6261 */
    63 
    6462function run_simple_customer_csv_exporter_for_woocommerce() {
    65     $plugin = new My_WooCommerce_Customer_Exporter();
    66     $plugin->run();
     63    $plugin = new My_WooCommerce_Customer_Exporter();
     64    $plugin->run();
    6765}
    6866run_simple_customer_csv_exporter_for_woocommerce();
     
    7371 */
    7472function wcce_activate() {
    75     // Optionally, add default settings or database tables here.
     73    // Optionally, add default settings or database tables here.
    7674}
    7775register_activation_hook( __FILE__, 'wcce_activate' );
     
    8280 */
    8381function wcce_deactivate() {
    84     // Optionally, clean up temporary data or options here.
     82    // Optionally, clean up temporary data or options here.
    8583}
    8684register_deactivation_hook( __FILE__, 'wcce_deactivate' );
    8785
    88 add_action( 'before_woocommerce_init', function () {
    89     if ( class_exists( \Automattic\WooCommerce\Utilities\FeaturesUtil::class ) ) {
    90         \Automattic\WooCommerce\Utilities\FeaturesUtil::declare_compatibility( 'custom_order_tables', __FILE__, true );
    91     }
    92 } );
     86add_action(
     87    'before_woocommerce_init',
     88    function () {
     89        if ( class_exists( \Automattic\WooCommerce\Utilities\FeaturesUtil::class ) ) {
     90            \Automattic\WooCommerce\Utilities\FeaturesUtil::declare_compatibility( 'custom_order_tables', __FILE__, true );
     91        }
     92    }
     93);
Note: See TracChangeset for help on using the changeset viewer.