Anyone know if this function can be used to create shortcode for this ?
get_sensei_user_grades( $lesson_id, $user_id = 0 )
Or this get_sensei_user_grades( $lesson_id, $sensei_user_id = 0 )
REVISED QUESTION. Sorry, thanks for feedback from a couple people, I guess the better (and more precise) way to have phrased the question is..
Can Sensei report Total “Grade” by Total (sum) of Points (of Questions of Lesson in Courses of a Module) correctly answered) instead of grade (and view results) by percentile?
or, as just handed to me….
(i.e. existing Sensei shortcode or function) to fetch and display: in Learner Profile (or any page) a Sum calculated as the total the number of points assigned to Questions in a Quiz (Lesson) automatically graded (correctly) summed from all Courses with the status of “Completed” in a specific Module.
Thanks
Hi @adminsvs ,
To my knowledge, this can’t be done out of the box – you’d likely need a custom mySQL query to grab the information, then transform it for display (in the admin? frontend?).
That said, we do have an open enhancement request for this here: https://github.com/Automattic/sensei/issues/2258 to which I’ve added your request.
Sorry I don’t have better news!
Best,