WordPress comments for example has an action hook that fires immediately after a comment is made which you can send the data off to where you need it:
https://developer.www.ads-software.com/reference/hooks/comment_post/#comment-5362
A sample of how the action hook could look like:
function send_reaction( $reaction_id, $reaction_type, $reaction_author, $reaction_link ) {
$reaction = get_reaction( $reaction_id );
$mail = ‘test@example.org’;
$reaction_link = get_reaction( $reaction_link )
$subject = sprintf( ‘New reaction by: %s’, $reaction->reaction_author );
$message = “You have a new ” . $reaction->reaction_type . “at” . $reaction_link;
wp_mail( $mail, $subject, $message );
}
add_action( ‘da_reaction’, ‘send_reaction’, 10, 2 );
Ultimately I’m interested in 3 pieces of information being sent into a database record. Reaction type, author, and the link where the reaction happened. Having this would be a dream come true as it would allow me to send notifications for reactions.
Warm regards,
Josh
]]>Thx for this plugin, looks very promising for my needs. Here is a feature request:
It would extra nice to have access to all the emojis in the Twemoji sets. it seems we only have access to a subset of this currently in the plugin. Like the emoji panels on Discord, with categories, search field etc…
Having all the object and the different skin shades would be awesome.
I made a bit of research and I found a nice library for this, Emoji Picker React (v4), (though it is React based, it gives an idea of the goal).
Cheers!
]]>Thx for this plugin, looks very promising for my needs. Here is a feature request:
It would extra nice to have access to all the emojis in the Twemoji sets. it seems we only have access to a subset of this currently in the plugin. Like the emoji panels on Discord, with categories, search field etc…
Having all the object and the different skin shades would be awesome.
I made a bit of research and I found a nice library for this, Emoji Picker React (v4), (though it is React based, it gives an idea of the goal).
Cheers!
]]>YOUR NOTIFICATIONS
ai_reaction_bp 30 seconds ago
That’s not very human readable for users to know what reaction they got. The hover works fine in the Fluida theme, so I’m wondering what’s required to replace the above note with the actual reaction the person received.
]]>Thanks
Marc
Your plugin is smart, thank you.
I would like to show only good reaction icon, and remove bad icon.
If it’s possible, how can I do that?
Please advice.
]]>