Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
WPLMS Show Course online/offline status in Course details
$details['unit_duration'] = array(
'label'=>_x('Course Offline/Online Status','label in details array','vibe-customtypes'),
'callback'=> 'custom_get_course_offline_online_status',
return $details;
function custom_get_course_offline_online_status(){
$offline = get_post_meta(get_the_ID(),'vibe_course_offline',true);
return '<li>'._x("Type","Course Detail Sidebar Average Rating","vibe-customtypes").'<i class="course_detail_span">'.(($offline === 'S')?'Offline':'Online').'</i></li>';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.