Author: Saeed Jamali
Tags: csv, import, processing, batch processing
Requires at least: WordPress 5.0
Tested up to: 6.4
Stable tag: 1.0.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
A professional WordPress plugin for processing CSV files with progress tracking and AJAX support.
CSV Processor is a powerful WordPress plugin developed by Saeed Jamali that allows you to process large CSV files efficiently. It provides a user-friendly interface for uploading and processing CSV files with the following features:
- Clean and intuitive admin interface
- Progress tracking with visual feedback
- Batch processing to prevent memory issues
- Pause/Resume functionality
- Error handling and reporting
- Responsive design
- State management for interrupted processes
- Upload the
csv-processorfolder to the/wp-content/plugins/directory. - Navigate to the plugin directory in your terminal.
- Run the installation script:
This will install Composer dependencies and set up the plugin.
./install.sh
- Activate the plugin through the 'Plugins' menu in WordPress.
- Go to the 'CSV Processor' menu in your WordPress admin panel.
- Upload and process your CSV files.
- PHP 7.4 or higher
- Composer (for installation)
- WordPress 5.0 or higher
The plugin is designed to handle large files by processing them in batches. The default batch size is 50 rows, but you can modify this in the code if needed.
The plugin saves the processing state and allows you to resume from where it left off. You can also manually pause and resume the process.
You can hook into the csv_processor_process_row action to implement your custom processing logic. See the documentation for more details.
- Initial release
- Added PSR-4 autoloading support
- Added Composer integration
Initial release with PSR-4 autoloading support
To customize the CSV processing logic, you can hook into the csv_processor_process_row action. Here's an example:
add_action('csv_processor_process_row', function($data, $row_index) {
// Your custom processing logic here
// $data contains the current row's data as an array
// $row_index is the row number in the CSV
}, 10, 2);The plugin implements several security measures:
- Nonce verification for all AJAX requests
- Capability checks for admin actions
- File type validation
- Secure file handling
- Input sanitization
For support, please visit my WordPress.org profile or my website saeedev.ir.