[wp-trac] [WordPress Trac] #32772: Filter for disabling Customizer
WordPress Trac
noreply at wordpress.org
Wed Jun 24 03:10:59 UTC 2015
#32772: Filter for disabling Customizer
----------------------------+-----------------------------
Reporter: hereswhatidid | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Customize | Version: trunk
Severity: normal | Keywords:
Focuses: administration |
----------------------------+-----------------------------
This filter gives developers a simple way to enable the 'no-customizer-
support' class within the body tag. Due to the fact that the 'customizer-
support' class is added via JavaScript on page render, it cannot be
manipulated using any core filters or actions currently.
By setting the filter value to false, the Customizer is essentially hidden
from the admin and the links that were currently pointing at the
Customizer (widgets, themes, etc...) are reverted to their previous
dashboard destinations.
Currently, disabling and reverting the Customizer requires any number of
different methods ranging from CSS overrides to hide the Customizer menus,
manually removing specific menu items (https://wordpress.org/support/topic
/remove-customize-from-admin-menu?replies=5), or using JavaScript to
target and hide the Customizer-specific items.
This filter makes this process in to a simple boolean filter so that
developers who do not want or need the Customizer can easily remove it.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/32772>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list