bbp_maybe_admin_setting_disabled( string $option_key = '' )

Disable a settings field if it is forcibly set in the global options array.


Description Description


Parameters Parameters

$option_key

(Optional)

Default value: ''


Top ↑

Source Source

File: includes/admin/settings.php

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

Top ↑

Changelog Changelog

Changelog
Version Description
2.2.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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