I am trying to figure out if it is possible for the shortcode feature on WordPress to display a title within the iframe?
When inspecting the youtube video once it is being displayed on the page, it appears like:
<iframe width="940" height="529" src="https://www.youtube.com/embed/xLZvgt_bPwE?feature=oembed" frameborder="0" allowfullscreen=""></iframe>
Would there be a way to edit the embed feature to also include a title (ex: <iframe width="940" height="529" title="Youtube Video" src="https://www.youtube.com/embed/xLZvgt_bPwE?feature=oembed" frameborder="0" allowfullscreen=""></iframe>
once it is displayed on the page or post?
If you add this filter and function to your functions.php it should provide your desired result 🙂