bp_activity_get_js_dependencies( array $js_handles = array() )

Include extra JavaScript dependencies for activity component.

Description

Parameters

$js_handles

(Optional) The original dependencies.

Default value: array()

Return

(array) $js_handles The new dependencies.

Source

File: bp-activity/bp-activity-filters.php

function bp_activity_get_js_dependencies( $js_handles = array() ) {
	if ( bp_activity_do_heartbeat() ) {
		$js_handles[] = 'heartbeat';
	}

	return $js_handles;
}

Changelog

Changelog
Version Description
BuddyPress 2.0.0 Introduced.

Questions?

We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.