bbp_maybe_admin_setting_disabled( string $option_key = '' )

Disable a settings field if the value is forcibly set in Forums’ global options array.

Description

Parameters

$option_key

(string) (Optional)

Default value: ''

Source

File: bp-forums/admin/settings.php

function bbp_maybe_admin_setting_disabled( $option_key = '' ) {
	disabled( isset( bbpress()->options[$option_key] ) );
}

Changelog

Changelog
Version Description
bbPress (r4347) Introduced.

Questions?

We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.