bp_activity_setup_oembed

Loads our activity oEmbed component.

Description

bp_activity_setup_oembed(); 

Usage

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

Defined (1)

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

/bp-activity/bp-activity-embeds.php  
  1. function bp_activity_setup_oembed() { 
  2. if ( version_compare( $GLOBALS['wp_version'], '4.5', '>=' ) && bp_is_active( 'activity', 'embeds' ) ) { 
  3. buddypress)->activity->oembed = new BP_Activity_oEmbed_Extension;