bp_activity_get_js_dependencies( array $js_handles = array() )

Include extra JavaScript dependencies for activity component.

Parameters Parameters


(array) (Optional) The original dependencies.

Default value: array()

Top ↑

Return Return

(array) $js_handles The new dependencies.

Source 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;

Top ↑

Changelog Changelog

Version Description
2.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.