Changeset 12893 for trunk/src/bp-core/bp-core-options.php
- Timestamp:
- 04/19/2021 04:25:39 AM (5 years ago)
- File:
-
- 1 edited
-
trunk/src/bp-core/bp-core-options.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-core/bp-core-options.php
r11939 r12893 90 90 // HeartBeat is on to refresh activities. 91 91 '_bp_enable_heartbeat_refresh' => true, 92 93 /* BuddyBar **********************************************************/94 95 // Force the BuddyBar.96 '_bp_force_buddybar' => false,97 92 98 93 /* Legacy *********************************************/ … … 669 664 670 665 /** 671 * Should the old BuddyBar be forced in place of the WP admin bar?672 *673 * @since 1.6.0674 *675 * @param bool $default Optional. Fallback value if not found in the database.676 * Default: true.677 * @return bool True if the BuddyBar should be forced on, otherwise false.678 */679 function bp_force_buddybar( $default = true ) {680 681 /**682 * Filters whether or not BuddyBar should be forced in place of WP Admin Bar.683 *684 * @since 1.6.0685 *686 * @param bool $value Whether or not BuddyBar should be forced in place of WP Admin Bar.687 */688 return (bool) apply_filters( 'bp_force_buddybar', (bool) bp_get_option( '_bp_force_buddybar', $default ) );689 }690 691 /**692 666 * Check whether Akismet is enabled. 693 667 *
Note: See TracChangeset
for help on using the changeset viewer.