Last active
August 20, 2020 18:58
-
-
Save Camwyn/23a1d019b3c440294e844370bf3fa3e7 to your computer and use it in GitHub Desktop.
Inject VE video embed before content.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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