LearnDash Exporter & Importer
The LearnDash Export & Import plugin provides a complete solution for migrating LearnDash content between WordPress sites. It preserves all course relationships, quiz settings, user progress tracking, and custom metadata during export/import operations.
by WBCom Designs · github.com/divangrastogi/learndash-export-import · website
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/divangrastogi/learndash-export-import/archive/refs/heads/main.zipA comprehensive tool to export and import LearnDash courses, lessons, topics, quizzes, and related data while maintaining relational integrity.
Description
The LearnDash Export & Import plugin provides a complete solution for migrating LearnDash content between WordPress sites. It preserves all course relationships, quiz settings, user progress tracking, and custom metadata during export/import operations.
Features
- Complete Course Export: Export entire courses including lessons, topics, quizzes, and certificates
- Bulk Export: Export multiple courses simultaneously with progress tracking
- Relational Integrity: Maintains all LearnDash relationships and dependencies
- Flexible Import: Import courses with duplicate handling options
- Batch Processing: Handles large imports efficiently with progress monitoring
- Elementor Integration: Optional support for Elementor page builder data
- Certificate Support: Export and import course certificates
- Quiz Questions: Include quiz questions and answers in exports
- Taxonomy Preservation: Maintain categories and tags
- Comprehensive Logging: Detailed logs for troubleshooting
- Testing Tools: Built-in test utilities for validation
Requirements
- WordPress: 5.0 or higher
- PHP: 8.0 or higher
- LearnDash: 4.0 or higher
- Memory: 512MB minimum recommended for large exports
Installation
- Download the plugin zip file
- Go to WordPress Admin > Plugins > Add New
- Click "Upload Plugin" and select the zip file
- Click "Install Now" and then "Activate"
Usage
Export
- Navigate to LearnDash Export & Import in the WordPress admin menu
- Click on the Export tab
- Select courses to export
- Configure export options:
- Include Elementor data
- Preserve serialized data
- Include certificates
- Include quiz questions
- Include taxonomies
- Set chunk size (auto/manual)
- Click "Export Selected Courses"
- Download the generated JSON file
Import
- Click on the Import tab
- Upload your JSON export file
- Choose duplicate handling method:
- Create new (recommended)
- Update existing
- Skip duplicates
- Click "Start Import"
- Monitor progress and review results
Bulk Operations
The plugin supports bulk export for multiple courses with real-time progress tracking and resumable operations.
Recent Fixes (v1.0.0)
Critical Bug Fixes
Issue #1 - Fatal Error During Import
- Problem: Missing
handle_batch_status_ajaxmethod caused fatal errors during batch import status checks - Fix: Added the missing AJAX handler method to
admin/class-ld-admin-ui.php - Impact: Import operations now complete successfully without fatal errors
Issue #2 - Imported Courses Not Displaying
- Problem: Imported courses wouldn't display properly due to missing
ld_course_stepsmeta data - Fix: Added
rebuild_course_structure()method inincludes/class-ld-importer.phpto properly rebuild course relationships - Impact: Imported courses now display correctly with full navigation and lesson structure
Files Modified
admin/class-ld-admin-ui.php- Added AJAX handler for batch status checksincludes/class-ld-importer.php- Enhanced import logic with structure rebuilding
Testing
Run validation scripts to ensure imports work correctly:
wp eval-file validate-import.php
wp eval-file test-import-cli.php
Support
For support and bug reports, please contact WBCom Designs at admin@wbcomdesigns.com
Changelog
v1.0.0
- Initial release with complete export/import functionality
- Fixed critical import bugs
- Added comprehensive logging and testing tools
- Elementor integration support
- Batch processing for large operations
License
GPL-2.0+ - See license file for details
Author
WBCom Designs
- Website: https://wbcomdesigns.com/
- Email: admin@wbcomdesigns.com