Changeset 3418252
- Timestamp:
- 12/12/2025 12:43:08 PM (4 months ago)
- 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 4 4 * Plugin URI: https://wordpress.org/plugins/search/simple-customer-csv-exporter-for-woocommerce/ 5 5 * Description: A WooCommerce plugin to list customers, filter by user's purchased products, with export to CSV. 6 * 6 * 7 7 * Version: 1.1.1 8 * 8 * 9 9 * Author: wpgenie 10 10 * Author URI: https://wpgenie.org … … 13 13 * Text Domain: simple-customer-csv-exporter-for-woocommerce 14 14 * Domain Path: /languages 15 * 15 * 16 16 * WC requires at least: 5.0 17 17 * WC tested up to: 10.9 18 * Requires Plugins: woocommerce 19 * 18 * Requires Plugins: WooCommerce 20 19 */ 21 20 22 21 // Exit if accessed directly. 23 22 if ( ! defined( 'ABSPATH' ) ) { 24 exit;23 exit; 25 24 } 26 25 … … 44 43 45 44 if ( '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'; 48 47 49 48 } else { 50 49 51 require_once WCCE_PATH . 'includes/class-my-customer-exporter.php';52 50 require_once WCCE_PATH . 'includes/class-my-customer-exporter.php'; 51 53 52 } 54 53 … … 61 60 * @since 1.0.0 62 61 */ 63 64 62 function 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(); 67 65 } 68 66 run_simple_customer_csv_exporter_for_woocommerce(); … … 73 71 */ 74 72 function wcce_activate() { 75 // Optionally, add default settings or database tables here.73 // Optionally, add default settings or database tables here. 76 74 } 77 75 register_activation_hook( __FILE__, 'wcce_activate' ); … … 82 80 */ 83 81 function wcce_deactivate() { 84 // Optionally, clean up temporary data or options here.82 // Optionally, clean up temporary data or options here. 85 83 } 86 84 register_deactivation_hook( __FILE__, 'wcce_deactivate' ); 87 85 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 } ); 86 add_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.