print_embed_scripts() WordPress Function
This function prints the scripts needed to embed media from popular social media sites. It includes the necessary Javascript and HTML for sites like YouTube, Vimeo, and Instagram. This function should be called from the wp_footer() hook.
print_embed_scripts() #
Prints the JavaScript in the embed iframe header.
Source
File: wp-includes/embed.php
function print_embed_scripts() { wp_print_inline_script_tag( file_get_contents( ABSPATH . WPINC . '/js/wp-embed-template' . wp_scripts_get_suffix() . '.js' ) ); }
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
4.4.0 | Introduced. |