Skip to main content

better_messages_before_username_click

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 hook compatible with Better Messages 2.0.55 or higher
wp.hooks.addFilter('better_messages_before_username_click', 'my_custom_actions', function (variable, user_id) {
console.log( user_id ); // Here you can get user id clicked

return true; //Prevents click event
return variable; // Processing to default click event
})