Clanbite Social Kit JavaScript Since 1.6.2
wp.hooks.doAction( 'clanbite.reactions.toggled', Object data, Object args )Fires after the server answered a reaction toggle.
Action JavaScript
Parameters
$data(Object)The new state (
reactions_count,user_reactions,reactions_display,my_reaction…).$args(Object)What the caller passed to
toggle().
Example
wp.hooks.addAction( 'clanbite.reactions.toggled', 'my-plugin/handler', function ( data, args ) {
} );Defined in assets/js/clanbite-reactions.js
Changelog
| Version | Description |
|---|---|
| 1.6.2 | Introduced. |