'; } public function renderVideo($file) { $type = wp_check_filetype($file); if (strpos(($type['type'] ?? ''), 'video') !== false) { echo sprintf('', $file); } } }