Skip to main content

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

// Add custom html
html += '<button>Custom</button>'
return html;
});

The html will be output directly before messages list.

better_messages_messages_list_before