bp_activity_oembed_dataparse

Cache full oEmbed response from oEmbed.

Description

(string) bp_activity_oembed_dataparse( (string) $retval, (object) $data ); 

Returns (string)

Parameters (2)

0. $retval (string)
Current oEmbed result.
1. $data (object)
Full oEmbed response.

Usage

  1. if ( !function_exists( 'bp_activity_oembed_dataparse' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'buddypress/bp-activity/bp-activity-functions.php'; 
  3.  
  4. // Current oEmbed result. 
  5. $retval = ''; 
  6.  
  7. // Full oEmbed response. 
  8. $data = null; 
  9.  
  10. // NOTICE! Understand what this does before running. 
  11. $result = bp_activity_oembed_dataparse($retval, $data); 
  12.  

Defined (1)

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

/bp-activity/bp-activity-functions.php  
  1. function bp_activity_oembed_dataparse( $retval, $data ) { 
  2. buddypress)->activity->oembed_response = $data; 
  3.  
  4. return $retval;