Clanbite Social Kit

clanbite_social_kit_reaction_icon_bound( string $path, string $css_class = '' ): string

Interactivity counterpart of clanbite_social_kit_reaction_icon(): binds an emoji and an image to a reaction row.

The row at $path carries emoji, icon_url, hide_icon and hide_emoji (built by the REST controller from the same reaction definition), so the glyph is identical to the picker's.

Namespace: Kernowdev\ClanbiteSocialKit

Parameters

$path (string) Required

Interactivity path of the reaction row, e.g. context.rx or context.item.my_reaction.

$css_class (string) Optional

CSS class for the wrapper element.

Default: ''

Returns

string Escaped HTML.

Defined in inc/functions.php