Clanbite Forums Forums

do_action( 'clanbite_forums_reply_reaction_toggled', int $reply_id, int $user_id, string $reaction_type, bool $active )

Fires after a forum reply reaction is toggled.

Action PHP

Parameters

$reply_id (int)

Reply ID.

$user_id (int)

User ID.

$reaction_type (string)

Sanitized slug.

$active (bool)

Whether the reaction is now present.

Example

add_action( 'clanbite_forums_reply_reaction_toggled', function ( $reply_id, $user_id, $reaction_type, $active ) {
	// Run your code.
}, 10, 4 );

Defined in inc/Forums/Data_Access.php