ok, so you have to cached the Course ID in a class to be used in the shortcode because the shortcode execution goes inside the rest API.
the actual implementation in your case would be :
https://gist.github.com/MrVibe/33425b188c5516c70c4bb40d3f0eee35
You have to add the code like this to get the course_id.
thank you.
1- please let me know where should i place this code??
https://gist.github.com/MrVibe/33425b188c5516c70c4bb40d3f0eee35
in wplms customizer??
2- as you said this filter is missing add_filter(‘wplms_get_course_tabs’,function($tabs){
so where should i add this filter??
1. yes
2. This filter is already there.
this is the complete code i used and it did not work.
please test this in your local host then share it with me. it shows fatal error and breaks site.
download the entire code from here: https://we.tl/t-4aoI1fXtBM
i used it in customizer plugin as mr vibe suggested
try out this code :https://gist.github.com/alexvibealex/0d61687dd2a4139c4f5ed3a7d9212196
this is the issue i am getting: https://share.getcloudapp.com/X6uAz90J
a fatal error same as earlier thats why i told you to test in local please.
if possible show a screenshot where should i find this leaderboard
updated : https://gist.github.com/MrVibe/33425b188c5516c70c4bb40d3f0eee35
whereever you place this shortcode in the course layout or single course you will get the leaderboard.
Note this is a customisation request not a support request
http://i.prntscr.com/9pqobgRkSoiJ-2enyem5Zw.png
Gist updated : https://gist.github.com/MrVibe/33425b188c5516c70c4bb40d3f0eee35
WPLMS plugin update is required, we're releasing update in few moments.
is it live, what should i do?? do i need to update the coding as well??
not yet, this update will be released on monday. But it seems you are pressed on time.
You have to replace the file : wp-content/plugins/wplms_plugin/assets/js/wplms.js with this file : https://drive.google.com/file/d/1p6Mix9s_rMBCr4GxKLU1QTkSQDqwORf5/view?usp=sharing
and then clear browser cache and use the above code. That should fix this.