@carcar8,
Yes. All of this data is available via functions and/or custom development.
Course Price is a bit complicated as LifterLMS allows for up to 6 different prices per course. We don’t have a single course price function. You could use this function to retrieve the list of prices and choose one of them or output a range though:
https://github.com/gocodebox/lifterlms/blob/3.15.1/includes/models/model.llms.course.php#L373-L375
Then you can access the access plans attached to the course: https://github.com/gocodebox/lifterlms/blob/3.15.1/includes/models/model.llms.product.php#L38-L86
Each plan has a price: https://github.com/gocodebox/lifterlms/blob/3.15.1/includes/models/model.llms.access.plan.php#L168-L192
NOTE: I didn’t test this code, it’s an example!
$course = llms_get_post( 123 ); // use your course ID here
$product = $course->get_product();
$plans =
foreach ( $product->get_plans() as $plan ) {
echo $plan->get_price();
}
Number of students: use $course->get_student_count() (https://github.com/gocodebox/lifterlms/blob/3.15.1/includes/models/model.llms.course.php#L290-L300)
Created date you can use native WP functions for since courses are WP Posts: get_the_date()
Rating: LifterLMS doesn’t currently have great APIs around our reviews. I plan to improve this in the future. Sorry…
You’ll want to attach these using loop actions / hooks: https://github.com/gocodebox/lifterlms/blob/3.15.1/templates/loop/content.php
Hope that helps,