Is there a way to make a dashboard contact form widget?

I just simply want to have it there so users can give feedback directly from their dashboard.


Yes. You can do this by adding a dashboard widget with a contact form function that uses AJAX to submit the form.

function myplugin_dashboard_widget() {

function myplugin_add_dashboard_widgets() {
    wp_add_dashboard_widget('myplugin_contact_widget', 'My Plugin Contact Form', 'myplugin_dashboard_widget');

add_action('wp_dashboard_setup', 'myplugin_add_dashboard_widgets' );

This plugin might be what you're looking for:


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.