FV Video Embed
With 3 attributes: Set Video ID, Set Auto-Play true/false, Set redirect URL. Need FV Player to work
// Add Shortcode function video_embed_shortcode( $atts ) { // Attributes $atts = shortcode_atts( array( 'id' => '', 'autoplay' => 'false', 'redirect' => '/', ), $atts, 'fv_video_embed' ); // Return custom embed code echo do_shortcode( '[fvplayer src="https://drive.google.com/uc?export=download&id=' . $atts['id'] . '#.mp4" playlist_advance="true" autoplay="' . $atts['autoplay'] . '" redirect="' . $atts['redirect'] . '"]' ); } add_shortcode( 'fv_video_embed', 'video_embed_shortcode' );