bp_enqueue_embed_scripts

Fires the 'bp_enqueue_embed_scripts' action in the for BP oEmbeds.

Description

bp_enqueue_embed_scripts(); 

Usage

  1. if ( !function_exists( 'bp_enqueue_embed_scripts' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'buddypress/bp-core/bp-core-dependency.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = bp_enqueue_embed_scripts(); 
  7.  

Defined (1)

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

/bp-core/bp-core-dependency.php  
  1. function bp_enqueue_embed_scripts() { 
  2. if ( ! is_buddypress() ) { 
  3. return; 
  4.  
  5. /** 
  6. * Enqueue CSS and JS files for BuddyPress embeds. 
  7. * @since 2.6.0 
  8. */