lifterlms_loop_featured_video()
Output a featured video on the course tile in a LifterLMS Loop
Return Return
(void)
Source Source
File: includes/functions/llms.functions.templates.loop.php
* @since 7.1.3 Add div tag to wrap featured video output in loop.
*
* @return void
*/
function lifterlms_loop_featured_video() {
global $post;
if ( 'course' === $post->post_type ) {
$course = llms_get_post( $post );
if ( 'yes' === $course->get( 'tile_featured_video' ) ) {
$video = $course->get_video();
if ( $video ) {
echo '<div class="llms-video-wrapper">' . $video . '</div>';
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
| Version | Description |
|---|---|
| 3.3.0 | Introduced. |