-
Home
-
CookieAdmin – Cookie Consent Banner
- Tips
function plt_hide_cookieadmin_menus() {
//Hide "CookieAdmin".
remove_menu_page('cookieadmin');
//Hide "CookieAdmin → Dashboard".
remove_submenu_page('cookieadmin', 'cookieadmin');
//Hide "CookieAdmin → Consent Form".
remove_submenu_page('cookieadmin', 'cookieadmin-consent');
//Hide "CookieAdmin → Settings".
remove_submenu_page('cookieadmin', 'cookieadmin-settings');
//Hide "CookieAdmin → Scan Cookies".
remove_submenu_page('cookieadmin', 'cookieadmin-scan-cookies');
//Hide "CookieAdmin → Go Pro".
remove_submenu_page('cookieadmin', 'https://cookieadmin.net/pricing?from=plugin');
}
add_action('admin_menu', 'plt_hide_cookieadmin_menus', 11);
Where do I put this code?