da_r_after_insert_user_reaction
Location:
DaReactions\Data::insertUserReaction
Triggered after a user reaction is successfully inserted.
Parameters:
$item_id
(int|string): The ID of the item.$item_type
(string): The type of the item.$reaction
(string): The reaction added.$result
(mixed): The result of the insertion.
Example:
add_action('da_r_after_insert_user_reaction', function($item_id, $item_type, $reaction, $result) { if ($result) { error_log("Successfully added reaction '$reaction' to item $item_id of type $item_type."); } });
Use Case:
Send notifications or update user activity logs.