bp_group_show_messages_status_setting( string $setting, object|bool $group = false )
Output the ‘checked’ value, if needed, for a given message_status on the group create/admin screens
Description
Parameters
- $setting
-
(Required) The setting you want to check against ('mods', or 'admins').
- $group
-
(Optional) Group object. Default: current group in loop.
Default value: false
Source
File: bp-groups/bp-groups-template.php
7598 7599 7600 7601 7602 7603 7604 7605 7606 | function bp_group_show_messages_status_setting( $setting , $group = false ) { $group_id = isset( $group ->id ) ? $group ->id : false; $message_status = bp_group_get_message_status( $group_id ); if ( $setting == $message_status ) { echo ' checked="checked"' ; } } |
Changelog
Version | Description |
---|---|
BuddyBoss 1.2.9 | Introduced. |
Questions?
We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.