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

Output the ‘checked’ value, if needed, for a given invite_status on the group create/admin screens


Parameters Parameters

$setting

(string) (Required) The setting you want to check against ('members', 'mods', or 'admins').

$group

(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_invite_status_setting( $setting, $group = false ) {
	$group_id = isset( $group->id ) ? $group->id : false;

	$invite_status = bp_group_get_invite_status( $group_id );

	if ( $setting == $invite_status ) {
		echo ' checked="checked"';
	}
}


Top ↑

Changelog Changelog

Changelog
Version Description
1.5.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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