Make WordPress Core

Opened 13 years ago

Closed 10 years ago

#17526 closed enhancement (maybelater)

Allow themes and plugins to disable options in the admin

Reported by: holizz's profile holizz Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: General Keywords:
Focuses: Cc:


I frequently set options in functions.php by hooking 'pre_option_*', thus whatever the user does in the admin interface they can't change it.

There should be a filter to make the option obviously disabled to the user (it should probably also set the disabled attribute on the form fields) and perhaps add a short message saying for instance "This option was changed by $plugin_name, visit $link to change it." or "This option has been set by the '$theme_name' theme. It cannot be changed."

Change History (2)

#1 @scribu
13 years ago

  • Milestone changed from Awaiting Review to Future Release

This will require #16413 first.

#2 @nacin
10 years ago

  • Milestone Future Release deleted
  • Resolution set to maybelater
  • Status changed from new to closed

This would be cool but it sounds like maybelater is a safe bet. If/when settings get overhauled I imagine this will be easy to do out of the box.

Note: See TracTickets for help on using tickets.