bp_nouveau_group_type_checked( object $type = null )
Output “checked” attribute to determine if the group type should be checked.
Description
Parameters
- $type
-
(Optional) Group type object. See bp_groups_get_group_type_object().
Default value: null
Source
File: bp-templates/bp-nouveau/includes/groups/template-tags.php
function bp_nouveau_group_type_checked( $type = null ) {
if ( ! is_object( $type ) ) {
return;
}
// Group creation screen requires a different check.
if ( bp_is_group_create() ) {
checked( true, ! empty( $type->create_screen_checked ) );
} elseif ( bp_is_group() ) {
checked( bp_groups_has_group_type( bp_get_current_group_id(), $type->name ) );
}
}
Changelog
| Version | Description |
|---|---|
| BuddyPress 3.2.0 | 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.