bp_activity_embed

Set up activity oEmbed cache during the activity loop.

Description

bp_activity_embed(); 

During an activity loop, this function sets up the hooks necessary to grab each item's embeds from the cache, or put them in the cache if they are not there yet.

This does not cover recursive activity comments, as they do not use a real loop. For that, see .


Usage

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

Defined (1)

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

/bp-activity/bp-activity-functions.php  
  1. function bp_activity_embed() {