Opened 15 years ago
Closed 13 years ago
#17526 closed enhancement (maybelater)
Allow themes and plugins to disable options in the admin
| Reported by: | holizz | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | General | Version: | |
| Severity: | normal | Keywords: | |
| Cc: | Focuses: |
Description
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)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
This will require #16413 first.