-
Home
-
LH Instant Articles
- Tips
How to Hide the "Instant Articles" Admin Menu
function plt_hide_lh_instant_articles_menus() {
//Hide the "Settings → Instant Articles" menu.
remove_submenu_page('options-general.php', 'lh-instant-articles/lh-instant-articles.php');
}
add_action('admin_menu', 'plt_hide_lh_instant_articles_menus', 11);
Where do I put this code?
How to Hide the "Send to Instant Articles" Meta Box
function plt_hide_lh_instant_articles_metaboxes() {
$screen = get_current_screen();
if ( !$screen ) {
return;
}
//Hide the "Send to Instant Articles" meta box.
remove_meta_box('lh_instant_articles-send_to_ia-div', $screen->id, 'side');
}
add_action('add_meta_boxes', 'plt_hide_lh_instant_articles_metaboxes', 20);