[wp-trac] [WordPress Trac] #43063: wp customizer is missing core events
WordPress Trac
noreply at wordpress.org
Fri Feb 23 22:13:16 UTC 2018
#43063: wp customizer is missing core events
-------------------------+-------------------------
Reporter: tpaksu | Owner:
Type: enhancement | Status: closed
Priority: normal | Milestone:
Component: Customize | Version: 4.9.1
Severity: normal | Resolution: wontfix
Keywords: | Focuses: javascript
-------------------------+-------------------------
Changes (by westonruter):
* status: new => closed
* resolution: => wontfix
* milestone: Awaiting Review =>
Comment:
You can listen for controls being added via `wp.customize.control.bind(
'add', function( control ) { /* ... */ } )`
So just check if `control.id` begins with `widget_` or `nav_menu_item` and
that will tell you when a menu item or widget is added.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/43063#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list