Skip to content

Instantly share code, notes, and snippets.

Last active Jun 25, 2019
What would you like to do?
WordPress Dashboard: moving top level menu items added by plugins to the 'Settings' menu (example: CoBlocks)
/* Add the code below to functions.php of your child theme or your custom functionality plugin – without the php tag above – and remove this line */
/* Moving the CoBlocks menu item under the 'Settings' menu */
/* @link: */
/* @link: */
function voneff_move_coblocks_settings() {
/* removing CoBlocks top level menu item */
/* adding menu item under Settings */
add_submenu_page( 'options-general.php', 'CoBlocks', 'CoBlocks', 'manage_options', 'coblocks-getting-started');
add_action( 'admin_init', 'voneff_move_coblocks_settings' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment