bp_dtheme_embed_read_more

When a user clicks on a "Read More" item, make sure embeds are correctly parsed and shown for the expanded content.

Description

bp_dtheme_embed_read_more( (object) $activity ); 

Parameters (1)

0. $activity (object)
The activity that is being expanded.

Usage

  1. if ( !function_exists( 'bp_dtheme_embed_read_more' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'buddypress/bp-activity/bp-activity-functions.php'; 
  3.  
  4. // The activity that is being expanded. 
  5. $activity = null; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = bp_dtheme_embed_read_more($activity); 
  9.  

Defined (1)

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

/bp-activity/bp-activity-functions.php  
  1. function bp_dtheme_embed_read_more( $activity ) { 
  2. buddypress)->activity->read_more_id = $activity->id; 
  3.  
  4. add_filter( 'embed_post_id', create_function( '', 'returnbuddypress)->activity->read_more_id;' ) );