-
Home
-
Code Snippets
- Tips
function plt_hide_code_snippets_menus() {
//Hide "Snippets".
remove_menu_page('snippets');
//Hide "Snippets → All Snippets".
remove_submenu_page('snippets', 'snippets');
//Hide "Snippets → Add New".
remove_submenu_page('snippets', 'add-snippet');
//Hide "Snippets → Import".
remove_submenu_page('snippets', 'import-code-snippets');
//Hide "Snippets → Settings".
remove_submenu_page('snippets', 'snippets-settings');
//Hide "Snippets → What's New".
remove_submenu_page('snippets', 'code-snippets-welcome');
//Hide "Snippets → Go Pro".
remove_submenu_page('snippets', 'code_snippets_upgrade');
}
add_action('admin_menu', 'plt_hide_code_snippets_menus', 501);
Where do I put this code?