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 }})

name identifies the popup; root is its element.

Example

wp.hooks.addAction( 'clanbite.popup.toggled', 'my-plugin/handler', function ( detail ) {
} );

Defined in assets/js/clanbite-popups.js

Changelog

VersionDescription
1.6.3Updated.
1.3.0Introduced.