{"id":14896807,"date":"2021-09-22T09:03:43","date_gmt":"2021-09-22T09:03:43","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/course-shortcode-classes\/"},"modified":"2021-09-22T09:03:43","modified_gmt":"2021-09-22T09:03:43","slug":"course-shortcode-classes","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/course-shortcode-classes\/","title":{"rendered":"Course shortcode classes"},"content":{"rendered":"<p>Hi guys,<\/p>\n<p>I&#8217;m using the [sensei_courses] shortcode to list all course, and am using the classes to add a badge to each course, &#8220;started&#8221;, &#8220;completed&#8221;, &#8220;No started&#8221; as a UI enhancement for users.<\/p>\n<p>The completed works quite well as the list adds a &#8220;user-status-completed&#8221; class. But course which have and haven&#8217;t been started both use &#8220;user-status-active&#8221;.<\/p>\n<p>Is there a hook to add a class to courses which haven&#8217;t been started as yet?<\/p>\n<p>Regards<\/p>\n","protected":false},"template":"","class_list":["post-14896807","topic","type-topic","status-publish","hentry","topic-tag-customization"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/14896807","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/14896807\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=14896807"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}