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 ) );
	}
}


Top ↑

Changelog Changelog

Changelog
Version Description
3.2.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.