da_r_after_update_reaction

Location:

\DaReactions\Data::updateOrCreateReaction

Triggered after updating a reaction.

Parameters:

  • $reaction_id  (int|string): The ID of the reaction.
  • $reaction  (array): The updated reaction data.
  • $current_reaction  (array): The previous reaction data.

Example:

add_action('da_r_after_update_reaction', function($reaction_id, $reaction, $current_reaction) {
    error_log("Reaction ID $reaction_id updated. New data: " . json_encode($reaction));
});

Use Case:

Audit reaction updates for analytics or debugging.

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.

Still need help? Contact Us Contact Us