LearnDash Course Reviews
Enable a Ratings, Reviews and Feedback system for all your LearnDash courses.
Shortcodes
- [ldcr_course_reviews] – shows course rating summary, review list and review submit form
- [ldcr_course_rating] – shows course rating stars, score and the number of ratings.
- [ldcr_course_rating_summary] – shows course rating summary
[ldcr_course_reviews]
- course_id – default to current Post ID, optional if on course page
- title – A title before shortcode content, default to no title.
[ldcr_course_rating]
- course_id – default to current Post ID, optional if on course page or within the loop
- show_stars – set to “true” or “1” to show the star rating, or “false” or “0” to hide it
- show_score – set to “true” or “1” to show the number rating, or “false” or “0” to hide it
- show_count – set to “true” or “1” to show the number of ratings, or “false” or “0” to hide it
[ldcr_course_rating_summary]
- course_id – default to current Post ID
- style – default to Course Reviews > Settings > Rating Summary Style setting. Accepted values: “1”, “2”, “3”.
Shortcode in theme templates
If you want to use a shortcode from within a template instead of with the content of a Post/Page? You can invoke it with a special function:
<?php echo do_shortcode( '[ldcr_course_reviews]' ); ?>
Filters
- ldcr_course_reviews_query
- ldcr_course_review_allowed
- ldcr_course_rating_hide_no_rating
- ldcr_new_review_recipients