da_r_before_create_reaction

Location:

DaReactions\Data::updateOrCreateReaction

Triggered before creating a new reaction.

Parameters:

  • $reaction  (array): The reaction data.

Example:

add_action('da_r_before_create_reaction', function($reaction) {
    error_log("Creating new reaction: " . json_encode($reaction));
});

Use Case:

Verify reaction uniqueness or sanitize data before saving.

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