-
Home
-
FormBuilder
- Tips
How to Hide the "FormBuilder" Admin Menu
function plt_hide_formbuilder_menus() {
//Hide the "Tools → FormBuilder" menu.
remove_submenu_page('tools.php', 'formbuilder.php');
}
add_action('admin_menu', 'plt_hide_formbuilder_menus', 11);
Where do I put this code?
How to Hide the "FormBuilder" Meta Box
function plt_hide_formbuilder_metaboxes() {
$screen = get_current_screen();
if ( !$screen ) {
return;
}
//Hide the "FormBuilder" meta box.
remove_meta_box('formbuilder_sectionid', $screen->id, 'normal');
}
add_action('add_meta_boxes', 'plt_hide_formbuilder_metaboxes', 20);