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.