bp_activity_do_heartbeat()
Should we use Heartbeat to refresh activities?
Description Description
Return Return
(bool) True if activity heartbeat is enabled, otherwise false.
Source Source
File: bp-activity/bp-activity-functions.php
function bp_activity_do_heartbeat() { $retval = false; if ( bp_is_activity_heartbeat_active() && ( bp_is_activity_directory() || bp_is_group_activity() ) ) { $retval = true; } /** * Filters whether the heartbeat feature in the activity stream should be active. * * @since 2.8.0 * * @param bool $retval Whether or not activity heartbeat is active. */ return (bool) apply_filters( 'bp_activity_do_heartbeat', $retval ); }
Changelog Changelog
Version | Description |
---|---|
2.0.0 | Introduced. |