[wp-trac] [WordPress Trac] #32772: Filter for disabling Customizer

WordPress Trac noreply at wordpress.org
Sat Jun 27 23:53:14 UTC 2015


#32772: Filter for disabling Customizer
---------------------------+-----------------------------
 Reporter:  hereswhatidid  |       Owner:
     Type:  enhancement    |      Status:  closed
 Priority:  normal         |   Milestone:
Component:  Customize      |     Version:  trunk
 Severity:  normal         |  Resolution:  invalid
 Keywords:                 |     Focuses:  administration
---------------------------+-----------------------------
Changes (by celloexpressions):

 * status:  new => closed
 * resolution:   => invalid
 * milestone:  Awaiting Review =>


Comment:

 I have yet to see a valid reason for something like this. In most cases,
 concerns about not wanting users to have access to the Customizer stem
 from the fact that you're not giving them the appropriate capabilities.
 And the `customize` capability can be used to turn off the Customizer if
 you really must.

 If you don't want users to have access to editing visual settings like
 colors, widgets, or menus, remove the `edit_theme_options` capability from
 the relevant user roles (potentially including administrators). Same goes
 for `switch_themes` and if you really want to lock things down on a client
 site, give them editor user accounts. `customize` is currently mapped to
 `edit_theme_options` by default, but that can be changed by plugins or
 core in the future. But on these sorts of sites, you probably shouldn't be
 building/using themes with options that you want to restrict your users
 from accessing in the first place.

 Note that widgets and menus have been proposed to get their own discrete
 capabilities in #29213 and #31020.

 While you can remove the `customize` meta capability (or re-map it or
 whatever), doing so simply because you don't want to train users or don't
 want to use the Customizer is doing yourself and your users an enormous
 disservice. As dd32 mentioned, the Customizer will only continue to grow
 in importance within WordPress. Additionally, user testing has shown that
 the Customizer experience is generally easier for users to grasp than the
 admin, which largely stems from the value of having live-previewing
 available. We're putting a significant amount of time into the Customizer
 every release to continue improving it, conducting frequent user tests
 along the way to optimize usability.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/32772#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list