[wp-trac] [WordPress Trac] #31320: Make customizer JavaScript API available during the live preview
WordPress Trac
noreply at wordpress.org
Sun Jul 12 04:52:18 UTC 2015
#31320: Make customizer JavaScript API available during the live preview
-------------------------+------------------------------
Reporter: Fab1en | Owner:
Type: enhancement | Status: reopened
Priority: normal | Milestone: Awaiting Review
Component: Customize | Version: 4.1
Severity: normal | Resolution:
Keywords: needs-patch | Focuses: javascript
-------------------------+------------------------------
Comment (by westonruter):
@Fab1en Try listening for the `active` message sent from the parent, as
was implemented in [33134], so something like:
{{{#!js
wp.customize.preview.bind( 'active', function() {
wp.customize.preview.send( 'please-do-this-for-me', 'first-param' );
});
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/31320#comment:9>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list