On this page
print_embed_scripts()
Prints the JavaScript in the embed iframe header.
Source
File: wp-includes/embed.php. View all references
function print_embed_scripts() {
wp_print_inline_script_tag(
file_get_contents( ABSPATH . WPINC . '/js/wp-embed-template' . wp_scripts_get_suffix() . '.js' )
);
}
Related
Uses
| Uses | Description |
|---|---|
| wp_print_inline_script_tag() wp-includes/script-loader.php | Prints inline JavaScript wrapped in tag. |
| wp_scripts_get_suffix() wp-includes/script-loader.php | Returns the suffix that can be used for the scripts. |
Changelog
| Version | Description |
|---|---|
| 4.4.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/print_embed_scripts