at path:
ROOT
/
wp-content
/
plugins
/
tutor
/
templates
/
single
/
video
/
video.php
run:
R
W
Run
embedded.php
1.18 KB
2026-04-14 05:34:27
R
W
Run
Delete
Rename
external_url.php
1.15 KB
2026-04-14 05:34:27
R
W
Run
Delete
Rename
html5.php
1.23 KB
2026-04-14 05:34:27
R
W
Run
Delete
Rename
shortcode.php
706 By
2026-04-14 05:34:27
R
W
Run
Delete
Rename
video.php
1.16 KB
2026-04-14 05:34:27
R
W
Run
Delete
Rename
vimeo.php
1.65 KB
2026-04-14 05:34:27
R
W
Run
Delete
Rename
youtube.php
1.51 KB
2026-04-14 05:34:27
R
W
Run
Delete
Rename
error_log
up
📄
video.php
Save
<?php /** * Display Video * * @package Tutor\Templates * @subpackage Single\Video * @author Themeum <support@themeum.com> * @link https://themeum.com * @since 1.0.0 */ if ( ! defined( 'ABSPATH' ) ) { exit; } $video_info = tutor_utils()->get_video_info(); do_action( 'tutor_lesson/single/before/video' ); $source_key = is_object( $video_info ) && 'html5' !== $video_info->source ? 'source_' . $video_info->source : null; $has_source = ( is_object( $video_info ) && isset( $video_info->source_video_id ) && $video_info->source_video_id ) || ( isset( $source_key ) ? $video_info->$source_key : null ); if ( $has_source ) { tutor_load_template( 'single.video.' . $video_info->source ); } else { $feature_image = get_post_meta( get_the_ID(), '_thumbnail_id', true ); $url = $feature_image ? wp_get_attachment_url( $feature_image ) : null; if ( $url ) { $html_markup = '<div class="tutor-lesson-feature-image"> <img src="' . $url . '" /> </div>'; echo wp_kses( $html_markup, array( 'div' => array( 'class' => true ), 'img' => array( 'src' => true ), ) ); } } do_action( 'tutor_lesson/single/after/video' );