-
Home
-
Contact Form DB Divi
- Tips
How to Hide Contact Form DB Divi Admin Menus
function plt_hide_contact_form_db_divi_menus() {
//Hide "Divi Form DB".
remove_menu_page('edit.php?post_type=lwp_form_submission');
//Hide "Divi Form DB → Divi Form DB".
remove_submenu_page('edit.php?post_type=lwp_form_submission', 'edit.php?post_type=lwp_form_submission');
//Hide "Divi Form DB → Contact Us".
remove_submenu_page('edit.php?post_type=lwp_form_submission', 'contact-form-db-divi-contact');
//Hide "Divi Form DB → Support Forum".
remove_submenu_page('edit.php?post_type=lwp_form_submission', 'contact-form-db-divi-wp-support-forum');
//Hide "Divi Form DB → Upgrade".
remove_submenu_page('edit.php?post_type=lwp_form_submission', 'contact-form-db-divi-pricing');
}
add_action('admin_menu', 'plt_hide_contact_form_db_divi_menus', 1000000000);
Where do I put this code?
How to Hide the "Form Submission Details" Meta Box
function plt_hide_contact_form_db_divi_metaboxes() {
$screen = get_current_screen();
if ( !$screen ) {
return;
}
//Hide the "Form Submission Details" meta box.
remove_meta_box('form-submission-details', $screen->id, 'normal');
}
add_action('add_meta_boxes', 'plt_hide_contact_form_db_divi_metaboxes', 20);