Testing of this plugin has been temporarily suspended due to an error. It will automatically resume when a new plugin version is released.
function plt_hide_contact_form_submissions_metaboxes() {
$screen = get_current_screen();
if ( !$screen ) {
return;
}
//Hide the "Mail" meta box.
remove_meta_box('wpcf7s_mail', $screen->id, 'normal');
//Hide the "Posted" meta box.
remove_meta_box('wpcf7s_posted', $screen->id, 'normal');
//Hide the "Overview" meta box.
remove_meta_box('wpcf7s_actions', $screen->id, 'side');
}
add_action('add_meta_boxes', 'plt_hide_contact_form_submissions_metaboxes', 20);