Skip to content

Instantly share code, notes, and snippets.

@Camwyn
Last active August 20, 2020 18:58
Show Gist options
  • Save Camwyn/23a1d019b3c440294e844370bf3fa3e7 to your computer and use it in GitHub Desktop.
Save Camwyn/23a1d019b3c440294e844370bf3fa3e7 to your computer and use it in GitHub Desktop.
Inject VE video embed before content.
// Add the below to your theme functions.php file!
function move_virtual_embed() {
// Inject before the content instead.
add_action(
'tribe_events_single_event_before_the_content',
function() {
return tribe( 'events-virtual.hooks' )->action_add_event_single_video_embed();
},
15,
0
);
}
add_action( 'init', 'move_virtual_embed' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment