da_r_before_update_reaction

Location:

DaReactions\Data::updateOrCreateReaction

Triggered before updating an existing reaction.

Parameters:

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

Example:

add_action('da_r_before_update_reaction', function($reaction_id, $reaction, $current_reaction) {
    error_log("Updating reaction ID $reaction_id. Current: " . json_encode($current_reaction) . ", New: " . json_encode($reaction));
});

Use Case:

Compare and log reaction changes.

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