Last active
April 24, 2018 14:00
-
-
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"
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* 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