bp_group_show_status_setting( string $setting, object|bool $group = false )

Output the ‘checked’ attribute for a given status in the settings UI.

Parameters Parameters


(string) (Required) Group status. 'public', 'private', 'hidden'.


(object|bool) (Optional) Group object. Default: current group in loop.

Default value: false

Source Source

File: bp-groups/bp-groups-template.php

function bp_group_show_status_setting( $setting, $group = false ) {
	global $groups_template;

	if ( empty( $group ) ) {
		$group =& $groups_template->group;

	if ( $setting == $group->status ) {
		echo ' checked="checked"';

Top ↑

Changelog Changelog

Version Description
1.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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