BBP_Forums_Group_Extension::group_settings_hidden_field()

Add a hidden input field on the group settings page if the group forum is enabled.


Description Description

Due to the way BuddyPress’ group admin settings page saves its settings, we need to let BP know that bbPress added a forum.

See also See also


Top ↑

Source Source

File: includes/extend/buddypress/groups.php

	public function group_settings_hidden_field() {

		// if a forum is not enabled, we don't need to add this field
		if ( ! bp_group_is_forum_enabled() ) {
			return;
		} ?>

		<input type="hidden" name="group-show-forum" id="group-show-forum" value="1" />

	<?php
	}

Top ↑

Changelog Changelog

Changelog
Version Description
2.4.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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