Course Builder Custom Fields
Last updated
Last updated
Course Builder Custom Fields help to customize Course Builder by adding fields like:
input (text, number, radio, checkbox, date, ..)
textarea
select
repeater
Course, Lesson, and Quiz Custom Fields could be added using filters:
masterstudy_lms_course_custom_fields
masterstudy_lms_lesson_custom_fields
masterstudy_lms_quiz_custom_fields
Example:
Course Builder Custom Fields could be filtered before sending to Course Builder using masterstudy_lms_course_builder_custom_fields
filter.
Example:
All input data will be automatically saved to post_meta. Additionally, data can be used with action:
Parameters:
$post_id
int
Course, Lesson, or Quiz Post ID.
$data
array
key => value array of Custom Fields
Example:
All values from Custom Fields will be saved as Post Meta fields with corresponding keys. So they can be easily retrieved and displayed as post meta fields.
Example:
There are text, textarea, number, checkbox, radio and select types of custom fields. Let's look at examples of each.
DatePicker field accepts and returns a value in Timestamp format. So the output of the date value is also different from other fields.
Example:
You can use all Field Types inside a Repeater. For example:
Repeater field doesn't support Validation.
Here is an example of all custom field types with filters used: