wp_oembed_add_host_js

Adds the necessary JavaScript to communicate with the embedded iframes.

Description

wp_oembed_add_host_js(); 

Usage

  1. if ( !function_exists( 'wp_oembed_add_host_js' ) ) { 
  2. require_once ABSPATH . WPINC . '/embed.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = wp_oembed_add_host_js(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/wp-includes/embed.php  
  1. function wp_oembed_add_host_js() { 
  2. wp_enqueue_script( 'wp-embed' );