bp_activity_get_js_dependencies

Include extra JavaScript dependencies for activity component.

Description

(array) bp_activity_get_js_dependencies( (array) $js_handles = array() ); 

Returns (array)

$js_handles The new dependencies.

Parameters (1)

0. $js_handles — Optional. (array) => array()
The original dependencies.

Usage

  1. if ( !function_exists( 'bp_activity_get_js_dependencies' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'buddypress/bp-activity/bp-activity-filters.php'; 
  3.  
  4. // The original dependencies. 
  5. $js_handles = array(); 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = bp_activity_get_js_dependencies($js_handles); 
  9.  

Defined (1)

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

/bp-activity/bp-activity-filters.php  
  1. function bp_activity_get_js_dependencies( $js_handles = array() ) { 
  2. $js_handles[] = 'heartbeat'; 
  3.  
  4. return $js_handles;