Clanbite Social Kit Social

do_action( 'clanbite_social_kit_reaction_toggled', int $post_id, int $user_id, string $reaction_type, bool $active )

Fires after a reaction row is toggled.

Action PHP

Parameters

$post_id (int)

Social post ID.

$user_id (int)

User ID.

$reaction_type (string)

Sanitized slug.

$active (bool)

Whether the reaction is now present.

Example

add_action( 'clanbite_social_kit_reaction_toggled', function ( $post_id, $user_id, $reaction_type, $active ) {
	// Run your code.
}, 10, 4 );

Defined in inc/Social/Data_Access.php