da_r_before_update_or_create_reaction

Location:

DaReactions\Data::updateOrCreateReaction

Triggered before updating or creating a reaction.

Parameters:

  • $reaction_id  (int|string|null): The ID of the reaction, if it exists.
  • $reaction  (array): The reaction data.

Example:

add_action('da_r_before_update_or_create_reaction', function($reaction_id, $reaction) {
    error_log("Updating/creating reaction ID $reaction_id with data: " . json_encode($reaction));
});

Use Case:

Ensure reaction data meets specific criteria.

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