-
Home
-
Instant Annotation
- Tips
How to Hide the "Instant Annotation" Admin Menu
function plt_hide_instant_annotation_menus() {
//Hide the "Settings → Instant Annotation" menu.
remove_submenu_page('options-general.php', 'iasemantify');
}
add_action('admin_menu', 'plt_hide_instant_annotation_menus', 11);
Where do I put this code?
How to Hide the "Instant Annotations" Meta Box
function plt_hide_instant_annotation_metaboxes() {
$screen = get_current_screen();
if ( !$screen ) {
return;
}
//Hide the "Instant Annotations" meta box.
remove_meta_box('iasemantify', $screen->id, 'normal');
}
add_action('add_meta_boxes', 'plt_hide_instant_annotation_metaboxes', 20);