bp_activity_do_heartbeat

Should we use Heartbeat to refresh activities?.

Description

bp_activity_do_heartbeat(); 

Usage

  1. if ( !function_exists( 'bp_activity_do_heartbeat' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'buddypress/bp-activity/bp-activity-functions.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = bp_activity_do_heartbeat(); 
  7.  

Defined (1)

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

/bp-activity/bp-activity-functions.php  
  1. function bp_activity_do_heartbeat() { 
  2. $retval = false; 
  3.  
  4. $retval = true; 
  5.  
  6. /** 
  7. * Filters whether the heartbeat feature in the activity stream should be active. 
  8. * @since 2.8.0 
  9. * @param bool $retval Whether or not activity heartbeat is active. 
  10. */ 
  11. return (bool) apply_filters( 'bp_activity_do_heartbeat', $retval );