Clanbite JavaScript Since 1.3.0 Updated in 1.6.3
wp.hooks.doAction( 'clanbite.popup.toggled', {{ name: string, open: boolean, root: Element }} detail )Fires whenever a Clanbite popup opens or closes, however it was triggered.
Action JavaScript
Parameters
$detail({{ name: string, open: boolean, root: Element }})nameidentifies the popup;rootis its element.
Example
wp.hooks.addAction( 'clanbite.popup.toggled', 'my-plugin/handler', function ( detail ) {
} );Defined in assets/js/clanbite-popups.js
Changelog
| Version | Description |
|---|---|
| 1.6.3 | Updated. |
| 1.3.0 | Introduced. |