=== Magelon Export === Tested up to: 6.7 Stable tag: 1.0.7 Requires PHP: 7.0 License: GPLv2 or later License URI: https://www.gnu.org/licenses/gpl-2.0.html Magelon Export is a WooCommerce plugin that allows store owners to export product data in compliance with Google Merchant specifications. ## Features - Export WooCommerce product data with custom field mapping - Schedule automatic exports (hourly, daily, weekly) - Endpoint for fetching the latest export - Extendable via WordPress hooks and filters ## Installation 1. Download the plugin and extract it into your WordPress plugins directory (`wp-content/plugins/magelon-export`). 2. Activate the plugin from the WordPress admin panel under **Plugins**. 3. Configure the export settings under **Tools > Magelon Export**. ## Usage 1. Go to **Tools > Magelon Export** in the admin panel. 2. Map WooCommerce fields to Google Product Data fields. 3. Set the export interval (hourly, daily, weekly). 4. Access the exported file at `/wp-content/uploads/magelon-export/products.csv`. ## Example 1: Extending the Plugin Developers can add custom fields using the `magelon_export_custom_product_fields` filter: ```php add_filter('magelon_export_custom_product_fields', function ($fields) { $fields['_custom_field'] = 'Custom Meta Field'; return $fields; }); ``` ## Example 2: Making ACF available in mapping ```php add_filter('magelon_export_custom_product_fields', function ($fields) { // Ensure ACF is installed and active if (!function_exists('acf_get_field_groups')) { return $fields; } // Get all ACF field groups $acf_field_groups = acf_get_field_groups(); foreach ($acf_field_groups as $group) { $fields_in_group = acf_get_fields($group['key']); if ($fields_in_group) { foreach ($fields_in_group as $acf_field) { $fields[$acf_field['name']] = 'ACF: ' . $acf_field['label']; } } } return $fields; }); ``` Support For issues, open a GitHub issue or contact support. support@magelon.com