Custom information in Course Details

— For versions 2.6 or below.

Sometimes you may want to add some information regarding a course in the Course details section.
Here’s how you can add your custom data in Course details section.

Note : There are now multiple ways to achieve this.

METHOD 1 (Recommended)

0. Install the WPLMS Customizer plugin
1. Go to following location : Wp admin -> Plugins -> editor -> wplms customizer -> customizer_class.php
2. Add the following line in the _construct function:

PHP Code:

3. Now add the following function in the class:

PHP Code:


Optional : Insert the above line in between the Course details, use below function instead of above

3. Now add the following function in the class:

PHP Code:

To insert after price use price instead of time, possible key values : price, precourse,time, badge,certificate
==================================================

METHOD 2 
0. Install the WPLMS Customizer plugin
1. Go to following location : Wp admin -> Plugins -> editor -> wplms customizer -> customizer_class.php
2. Add the following line in the _construct function:

PHP Code:

3. Now add the following function in the class:

PHP Code:

******************************************

You can further extend this tip by making use of Custom Fields in WordPRess.

You can enable custom fields from the Screen options when you’re editing a course.

1. Add a new custom field, example : myfield and enter a value example: 8 Lessons
2. Now modify the above function :

PHP Code:

 

Was this article helpful?

Related Articles