-
Home
-
Request Form for Zendesk
- Tips
How to Hide the "Zendesk Form" Admin Menu
function plt_hide_zendesk_request_form_menus() {
//Hide the "Settings → Zendesk Form" menu.
remove_submenu_page('options-general.php', 'zendesk-request-form');
}
add_action('admin_menu', 'plt_hide_zendesk_request_form_menus', 11);
Where do I put this code?
How to Hide the "Settings" Meta Box
function plt_hide_zendesk_request_form_metaboxes() {
$screen = get_current_screen();
if ( !$screen ) {
return;
}
//Hide the "Settings" meta box.
remove_meta_box('pipdig_zrf_meta', $screen->id, 'normal');
}
add_action('add_meta_boxes', 'plt_hide_zendesk_request_form_metaboxes', 20);