W3cubDocs

/WordPress

wp_oembed_add_host_js()

Adds the necessary JavaScript to communicate with the embedded iframes.

Description

Source

File: wp-includes/embed.php

function wp_oembed_add_host_js() {
	wp_enqueue_script( 'wp-embed' );
}

Changelog

Version Description
4.4.0 Introduced.

© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/wp_oembed_add_host_js