I'm running the YouTube Video Fetcher plugin and it fetches youtube videos and displays it on your website. However, instead of displaying the video after the post, I want to hook the code into a custom container.
Here is the function in the plugin used to display the video after the post:
//The below function is used to display the video after the post.
function append_the_video($content){
return $content.youtube_video();
}
add_filter('the_content', 'append_the_video');
I tried swapping out the following line:
add_filter('the_content', 'append_the_video');
with this line but it is not working:
add_action('my_custom_hook_name', 'append_the_video');