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

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


Description Description


Parameters Parameters

$setting

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

$group

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

Default value: false


Top ↑

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

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.