Changeset 11763 for trunk/src/bp-core/bp-core-options.php
- Timestamp:
- 12/08/2017 12:22:09 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-core/bp-core-options.php
r11695 r11763 29 29 30 30 'bp-deactivated-components' => array(), 31 32 /* bbPress ***********************************************************/33 34 // Legacy bbPress config location.35 'bb-config-location' => ABSPATH . 'bb-config.php',36 31 37 32 /* XProfile **********************************************************/ … … 695 690 696 691 /** 697 * Output the group forums root parent forum id.698 *699 * @since 1.6.0700 *701 * @param bool|string $default Optional. Default: '0'.702 */703 function bp_group_forums_root_id( $default = '0' ) {704 echo bp_get_group_forums_root_id( $default );705 }706 /**707 * Return the group forums root parent forum id.708 *709 * @since 1.6.0710 *711 * @param bool|string $default Optional. Default: '0'.712 * @return int The ID of the group forums root forum.713 */714 function bp_get_group_forums_root_id( $default = '0' ) {715 716 /**717 * Filters the group forums root parent forum id.718 *719 * @since 1.6.0720 *721 * @param int $value The group forums root parent forum id.722 */723 return (int) apply_filters( 'bp_get_group_forums_root_id', (int) bp_get_option( '_bp_group_forums_root_id', $default ) );724 }725 726 /**727 * Check whether BuddyPress Group Forums are enabled.728 *729 * @since 1.6.0730 *731 * @param bool $default Optional. Fallback value if not found in the database.732 * Default: true.733 * @return bool True if group forums are active, otherwise false.734 */735 function bp_is_group_forums_active( $default = true ) {736 737 /**738 * Filters whether or not BuddyPress Group Forums are enabled.739 *740 * @since 1.6.0741 *742 * @param bool $value Whether or not BuddyPress Group Forums are enabled.743 */744 return (bool) apply_filters( 'bp_is_group_forums_active', (bool) bp_get_option( '_bp_enable_group_forums', $default ) );745 }746 747 /**748 692 * Check whether Akismet is enabled. 749 693 *
Note: See TracChangeset
for help on using the changeset viewer.