Skip to content

Commit e6f7c26

Browse files
committed
Changelog & notice system updated
1 parent 8a98252 commit e6f7c26

File tree

3 files changed

+64
-34
lines changed

3 files changed

+64
-34
lines changed

classes/TutorLMSMigrationTool.php

Lines changed: 24 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -48,20 +48,36 @@ public static function instance() {
4848
* Register hook and dependencies.
4949
*/
5050
public function __construct() {
51+
add_action( 'plugins_loaded', array( $this, 'init' ), 9 );
52+
}
53+
54+
/**
55+
* Initialize all the scripts
56+
*
57+
* @since 2.3.0
58+
*
59+
* @return void
60+
*/
61+
public function init() {
62+
$has_req_version = version_compare( TUTOR_VERSION, TLMT_TUTOR_CORE_REQ_VERSION, '>=' );
63+
5164
include_once ABSPATH . 'wp-admin/includes/plugin.php';
5265

5366
$this->load_assets();
5467
add_filter( 'plugin_action_links_' . plugin_basename( TLMT_FILE ), array( $this, 'plugin_action_links' ) );
5568

56-
if ( $this->check_installed() ) {
57-
$this->used_classes();
58-
$this->classes_initialize();
69+
if ( $has_req_version ) {
70+
if ( $this->check_installed() ) {
71+
$this->used_classes();
72+
$this->classes_initialize();
73+
} else {
74+
add_action( 'wp_ajax_install_tutor_plugin', array( $this, 'install_tutor_plugin' ) );
75+
add_action( 'admin_action_activate_tutor_free', array( $this, 'activate_tutor_free' ) );
76+
}
5977
} else {
60-
add_action( 'wp_ajax_install_tutor_plugin', array( $this, 'install_tutor_plugin' ) );
61-
add_action( 'admin_action_activate_tutor_free', array( $this, 'activate_tutor_free' ) );
78+
add_action( 'admin_notices', array( $this, 'check_if_ld_lp_is_activated' ) );
79+
add_action( 'admin_notices', array( $this, 'free_plugin_installed_but_inactive_notice' ) );
6280
}
63-
add_action( 'admin_notices', array( $this, 'check_if_ld_lp_is_activated' ) );
64-
add_action( 'admin_notices', array( $this, 'free_plugin_installed_but_inactive_notice' ) );
6581
}
6682

6783
/**
@@ -88,7 +104,7 @@ public function check_if_ld_lp_is_activated() {
88104
* @return bool
89105
*/
90106
public function check_installed() {
91-
return;
107+
return true;
92108
}
93109

94110
/**

readme.txt

Lines changed: 39 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -12,67 +12,81 @@ License URI: https://www.gnu.org/licenses/gpl-3.0.html
1212
Move all your course, quiz, order data information and everything else from your LMS to the better Tutor LMS by simply clicking a button.
1313

1414
== Description ==
15-
Migrate to [Tutor LMS](https://www.themeum.com/product/tutor-lms/) for a better, richer, and smarter [eLearning](https://wordpress.org/plugins/tutor/) experience.
15+
Migrate to [Tutor LMS](https://tutorlms.com/) for a better, richer, and smarter [eLearning](https://wordpress.org/plugins/tutor/) experience.
1616

1717
If you are using the LearnDash, LearnPress, or LifterLMS plugin and want to migrate to Tutor LMS, this plugin can help you migrate without losing your valuable data (Courses, Lessons, Quizzes, Sales Data, Reviews, Students, Instructors, Course Enrollment and Course Complete Status).
1818

1919
No need to hassle with complicated migration settings when you can use Tutor LMS Migration Tool with its easy user interface. With its simple one-click auto migration settings you can have all the information from your old LMS plugin transferred without any database error.
2020

21-
= Future UPDATES =
21+
= UPDATES =
2222

23-
With the initial release of the Tutor LMS Migration Tool, we are introducing migration options from two other LMS plugin to Tutor LMS. We have a roadmap to bring you compatibility support for migration with many other plugins in the future.
23+
In this version of Tutor LMS Migration Tool, we are introducing migration options from major LMS plugin to Tutor LMS. We have a roadmap to bring you compatibility support for migration with many other plugins in the future.
2424

2525
Currently Tutor LMS Migration support migration options from
2626

27-
* LearnPress
2827
* LearnDash
28+
* LearnPress &
2929
* LifterLMS
3030

3131
= Pre-requisites =
3232

33-
To get started with migrating your information from LearnPress/LearnDash LMS to Tutor LMS in the easiest way, you need to make sure you have the following plugins installed.
33+
To get started with migrating your information from LearnDash/LearnPress/Lifter LMS to Tutor LMS in the easiest way, you need to make sure you have the following plugins installed.
3434

35-
**Note:** Note: Currently the Tutor LMS Migration Tool supports migration from LearnPress/LearnDash to Tutor LMS. We are working hard to bring migration options from other LMS to Tutor LMS as soon as possible. But as it only supports migration from LearnPress/LearnDash the following plugins are required
35+
**Note:** Currently the Tutor LMS Migration Tool supports migration from LearnDash, LearnPress, and LifterLMS to Tutor LMS. We are working hard to bring migration options from other LMS to Tutor LMS as soon as possible. But as it only supports migration from LearnPress/LearnDash the following plugins are required
3636

37-
* Tutor LMS (Version 2.0.10 or later) for migration from LearnPress
38-
* Tutor LMS (Version 2.0.10 or later) for migrating from LearnDash
37+
* Tutor LMS (Version 3.6 or later)
3938

40-
And the following plugins for their respective migrations
39+
And the following plugins for their respective migrations
4140

42-
* For LearnPress (Version 4.0 or later)
4341
* For LearnDash ( Version 4.0 or later)
42+
* For LearnPress (Version 4.0 or later)
43+
* For LifterLMS ( Version 8.0 or later)
4444

4545
You need the mentioned versions or later of the plugin for the migration to work properly.
4646

4747
= Get Started =
4848

49-
After you install the migration plugin in your WordPress site you will find the migration option in the Tools section of Tutor LMS.
49+
After you install the migration plugin in your WordPress site you will find the migration option in the Tools menu of Tutor LMS.
50+
51+
LearnDash Migration supports the migration of the following data types:
52+
53+
* Courses
54+
* Lessons
55+
* Quizzes
56+
* Quiz Attempts
57+
* Assignments
58+
* Sales Data
59+
* Students Progress
60+
* Course Reviews
5061

51-
In the LearnPress Migration tab, you will find the migration status bar. You will see a successful message for each dataset for a successful migration. You will see success messages for
62+
LearnPress Migration supports the migration of the following data types:
5263

5364
* Courses
54-
* Lesson
55-
* Quiz
65+
* Lessons
66+
* Quizzes
5667
* Sales Data
5768
* Reviews
5869
* Students
5970
* Instructors
6071
* Course Enrollment
6172
* Course Complete Status
6273

63-
And for the LearnDash Migration tab, you will find the migration options for LearnDash migration. You will find status bars for the following dataset migrations.
74+
LifterLMS Migration supports the migration of the following data types:
6475

6576
* Courses
66-
* Quiz
77+
* Lessons
78+
* Quizzes
79+
* Assignments
6780
* Sales Data
81+
* Enrollment
6882

69-
For both migrations, click on the Migrate Now button to get your migration process started. Sit back and enjoy while the Tutor LMS Migration Tool handles all your database information during the migration process. After the migration tool is done, you can start using Tutor LMS from where you left off in your previous LMS.
83+
For quick migrations, click on the "Migrate Now" button to get your migration process started. Sit back and enjoy while the Tutor LMS Migration Tool handles all your database information during the migration process. After the migration tool is done, you can start using Tutor LMS from where you left off in your previous LMS.
7084

7185
The whole process is so seamless that you will feel like you just opted-in for a better LMS without even changing anything at all.
7286

7387
= Separate Import & Export Option =
7488

75-
With Tutor LMS Migration Tool you can also separately export the data to your local folder or import the database file by uploading the XML format file. The manual export/import option is available for both the LearnPress & LearnDash migration.
89+
With Tutor LMS Migration Tool you can also separately export the data to your local folder or import the database file by uploading the XML format file.
7690

7791
== Installation ==
7892

@@ -83,9 +97,9 @@ With Tutor LMS Migration Tool you can also separately export the data to your lo
8397

8498
= Automatic installation =
8599

86-
The automatic installation is the easiest way to install any plugin in WordPress. You can perform an automatic installation of Tutor by logging in to your WordPress dashboard, navigating to the Plugins menu and click on the Add New button.
100+
The automatic installation is the easiest way to install any plugin in WordPress. You can perform an automatic installation of Tutor by logging in to your WordPress dashboard, navigating to the "Plugins" menu and click on the "Add New" button.
87101

88-
This will open up a page showing all the available plugins in WordPress. In the search field, type Tutor. The search result will show you our Tutor plugin, you can then see the detailed info by clicking on More Details and to install just click on the Install Now button.
102+
This will open up a page showing all the available plugins in WordPress. In the search field, type Tutor. The search result will show you our Tutor plugin, you can then see the detailed info by clicking on "More Details" and to install just click on the "Install Now" button.
89103

90104
= Manual installation =
91105

@@ -97,7 +111,7 @@ The WordPress codex contains [instructions on how to do this here](https://codex
97111

98112
= Is This Plugin has any Dependency? =
99113

100-
Yes, You need tutor regular plugin in order to use this plugin, You can migrate LearnPress data if exists. Take a backaup of your full website before migrate.
114+
Yes, You need to install the [Tutor LMS](https://wordpress.org/plugins/tutor/) plugin in order to use this plugin. Take a backaup of your full website before migrate.
101115

102116
= I need migrate others LMS data to Tutor LMS, what should I do? =
103117

@@ -112,16 +126,16 @@ We will add others LMS migration to this plugin, so you can migrate it. Or if yo
112126

113127
== Changelog ==
114128

115-
= 2.3.0 - 14 July, 2025 =
129+
= 2.3.0 - 15 July, 2025 =
116130

117131
New: Added support for migrating assignments from LearnDash to Tutor LMS.
118132
New: Student progress (lessons, assignments, and quiz attempts) can now be migrated from LearnDash to Tutor LMS.
119133
New: Course reviews from the LearnDash Course Review addon can now be migrated to Tutor LMS.
120134
New: Migrate LearnDash Native Orders to Tutor LMS native orders.
121-
New: Migrate LearnDash Buy Now courses to Tutor LMS paid courses.
135+
New: Migrate LearnDash "Buy Now" courses to Tutor LMS paid courses.
122136
New: Orders migrated to Tutor Native or Tutor WooCommerce are now reflected in the Reports page.
123137
Update: Migrate LearnDash Native Orders to Tutor WooCommerce and Easy Digital Downloads.
124-
Update: Migrate LearnDash Buy Now courses to Tutor WooCommerce and Easy Digital Downloads products.
138+
Update: Migrate LearnDash "Buy Now" courses to Tutor WooCommerce and Easy Digital Downloads products.
125139
Fix: Fixed an issue where the course builder would crash when opening a quiz migrated from LearnDash to Tutor LMS.
126140

127141
= 2.2.2 - 29 August, 2024 =
@@ -191,4 +205,4 @@ Fix: Security vulnerabilities
191205

192206
== Upgrade Notice ==
193207

194-
None Available
208+
None Available

views/components/migrate-now.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
?>
1212
<div class="tutor-row tutor-align-center">
1313
<div class="tutor-col-md-8 tutor-d-flex tutor-flex-wrap">
14-
<div class="backup-now-subtile tutor-fs-7 tutor-color-warning">
14+
<div class="tutor-fs-7 tutor-color-warning">
1515
<i class="tutor-icon-warning"></i>
1616
<sapn><?php esc_html_e( 'We recommend that you take a database backup before proceeding.', 'tutor-lms-migration-tool' ); ?></sapn>
1717
</div>

0 commit comments

Comments
 (0)