-
Home
-
HT Easy GA4 – Google Analytics WordPress Plugin
- Tips
function plt_hide_ht_easy_google_analytics_menus() {
//Hide "HT Easy GA4".
remove_menu_page('ht-easy-ga4-setting-page');
//Hide "HT Easy GA4 → Settings".
remove_submenu_page('ht-easy-ga4-setting-page', 'ht-easy-ga4-setting-page');
//Hide "HT Easy GA4 → Reports".
remove_submenu_page('ht-easy-ga4-setting-page', 'ht-easy-ga4-setting-page&tab=standard_reports');
//Hide "HT Easy GA4 → Documentation".
remove_submenu_page('ht-easy-ga4-setting-page', 'https://hasthemes.com/docs/ht-easy-ga4/how-to');
//Hide "HT Easy GA4 → Need Help?".
remove_submenu_page('ht-easy-ga4-setting-page', 'https://hasthemes.com/contact-us');
//Hide "HT Easy GA4 → Recommendations".
remove_submenu_page('ht-easy-ga4-setting-page', 'ga4-recommendations');
//Hide "HT Easy GA4 → Upgrade to Pro".
remove_submenu_page('ht-easy-ga4-setting-page', 'https://hasthemes.com/plugins/google-analytics-plugin-for-wordpress/?utm_source=admin&utm_medium=mainmenu&utm_campaign=free#pricing');
}
add_action('admin_menu', 'plt_hide_ht_easy_google_analytics_menus', 100000);
Where do I put this code?