Skip to content

Instantly share code, notes, and snippets.

@voneff
Last active April 24, 2018 14:00
Show Gist options
  • Save voneff/745d4f774bfd7acf0ff8f8415634e2b9 to your computer and use it in GitHub Desktop.
Save voneff/745d4f774bfd7acf0ff8f8415634e2b9 to your computer and use it in GitHub Desktop.
WordPress dashboard: Move the menu item for "iubenda cookie law solution" to "Settings"
/* Add this into your own custom functionality plugin or the functions.php of your child theme */
<?php
function voneff_move_iubenda_menu_item(){
/* removing the top level menu item */
remove_menu_page( 'iubenda-cookie-law-solution' );
/* adding menu item under Settings */
add_submenu_page( 'options-general.php', 'iubenda', 'iubenda', 'manage_options', 'iubenda-cookie-law-solution');
}
add_action( 'admin_menu', 'voneff_move_iubenda_menu_item' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment