wp_oembed_add_host_js
Adds the necessary JavaScript to communicate with the embedded iframes.
Description
wp_oembed_add_host_js();
Usage
if ( !function_exists( 'wp_oembed_add_host_js' ) ) { require_once ABSPATH . WPINC . '/embed.php'; } // NOTICE! Understand what this does before running. $result = wp_oembed_add_host_js();
Defined (1)
The function is defined in the following location(s).
- /wp-includes/embed.php
- function wp_oembed_add_host_js() {
- wp_enqueue_script( 'wp-embed' );
- }