Changeset 7952 for trunk/bp-core/bp-core-options.php
- Timestamp:
- 02/21/2014 02:49:33 PM (12 years ago)
- File:
-
- 1 edited
-
trunk/bp-core/bp-core-options.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-core/bp-core-options.php
r7904 r7952 76 76 // Users from all sites can post 77 77 '_bp_enable_akismet' => true, 78 79 /** Activity HeartBeat ************************************************/ 80 81 // HeartBeat is on to refresh activities 82 '_bp_enable_heartbeat_refresh' => true, 78 83 79 84 /** BuddyBar **********************************************************/ … … 587 592 588 593 /** 594 * Check whether Activity Heartbeat refresh is enabled. 595 * 596 * @since BuddyPress (2.0.0) 597 * 598 * @uses bp_get_option() To get the Heartbeat option. 599 * 600 * @param bool $default Optional. Fallback value if not found in the database. 601 * Default: true. 602 * @return bool True if Heartbeat refresh is enabled, otherwise false. 603 */ 604 function bp_is_activity_heartbeat_active( $default = true ) { 605 return (bool) apply_filters( 'bp_is_activity_heartbeat_active', (bool) bp_get_option( '_bp_enable_heartbeat_refresh', $default ) ); 606 } 607 608 /** 589 609 * Get the current theme package ID. 590 610 *
Note: See TracChangeset
for help on using the changeset viewer.