-
Home
-
Fathom Analytics Conversions
- Tips
How to Hide the "Fathom Analytics Conversions" Admin Menu
function plt_hide_fathom_analytics_conversions_menus() {
//Hide the "Settings → Fathom Analytics Conversions" menu.
remove_submenu_page('options-general.php', 'fac4wp-settings');
}
add_action('admin_menu', 'plt_hide_fathom_analytics_conversions_menus', 11);
Where do I put this code?
How to Hide the "Fathom Analytics" Meta Box
function plt_hide_fathom_analytics_conversions_metaboxes() {
$screen = get_current_screen();
if ( !$screen ) {
return;
}
//Hide the "Fathom Analytics" meta box.
remove_meta_box('fac-meta-box', $screen->id, 'side');
}
add_action('add_meta_boxes', 'plt_hide_fathom_analytics_conversions_metaboxes', 20);