Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
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 */
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