Clanbite JavaScript Since 1.6.3
wp.hooks.doAction( 'clanbite.components.registered', string slug, Object api )Fires when a component registers its browser API.
Action JavaScript
Parameters
$slug(string)Component slug.
$api(Object)The registered API.
Example
wp.hooks.addAction( 'clanbite.components.registered', 'my-plugin/handler', function ( slug, api ) {
} );Defined in assets/js/clanbite-components.js
Changelog
| Version | Description |
|---|---|
| 1.6.3 | Introduced. |