-
Home
-
Instant Articles for WP
- Tips
How to Hide the "Instant Articles" Admin Menu
function plt_hide_fb_instant_articles_menus() {
//Hide the "Instant Articles" menu.
remove_menu_page('instant-articles-wizard');
}
add_action('admin_menu', 'plt_hide_fb_instant_articles_menus', 11);
Where do I put this code?
How to Hide the "Facebook Instant Articles" Meta Box
function plt_hide_fb_instant_articles_metaboxes() {
$screen = get_current_screen();
if ( !$screen ) {
return;
}
//Hide the "Facebook Instant Articles" meta box.
remove_meta_box('instant_article_meta_box', $screen->id, 'normal');
}
add_action('add_meta_boxes', 'plt_hide_fb_instant_articles_metaboxes', 20);