do_action( 'clanbite_forums_topic_reaction_toggled', int $topic_id, int $user_id, string $reaction_type, bool $active )Fires after a forum topic reaction is toggled.
Action PHP
Parameters
$topic_id(int)Topic ID.
$user_id(int)User ID.
$reaction_type(string)Sanitized slug.
$active(bool)Whether the reaction is now present.
Example
add_action( 'clanbite_forums_topic_reaction_toggled', function ( $topic_id, $user_id, $reaction_type, $active ) {
// Run your code.
}, 10, 4 );Defined in inc/Forums/Data_Access.php