Skip to main content

better_messages_participants_list_after

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.106 or higher
wp.hooks.addFilter('better_messages_participants_list_after', 'custom_action', function(html, thread){
// Get access to thread data
// console.log( thread );

// Add custom html
html += '<div class="my-custom-html">Add <strong>custom</strong> data</div>'
return html;
});

The html will be output directly before messages list.

better_messages_participants_list_after