better_messages_avatar_class
REQUIREMENTS
To be able to implement this guide, you need to learn how to use JS snippets at your website.
One of guides: https://dev.to/david_woolf/how-to-get-started-with-wordpress-hooks-in-javascript-400o
Compatibility
This filter compatible with Better Messages 2.4.3 or higher
wp.hooks.addFilter('better_messages_avatar_class', 'custom_action', function(classes, user){
// user variable contains user info
// console.log(user);
classes += ' custom-avatar-class';
return classes;
});