bp_nouveau_group_type_checked( object $type = null )
Output “checked” attribute to determine if the group type should be checked.
Parameters Parameters
- $type
-
(object) (Optional) Group type object. See bp_groups_get_group_type_object().
Default value: null
Source 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 ) ); } }
Expand full source code Collapse full source code View on Trac
Changelog Changelog
Version | Description |
---|---|
3.2.0 | Introduced. |