-
Home
-
VK Blocks
- Tips
How to Hide VK Blocks Admin Menus
function plt_hide_vk_blocks_menus() {
//Hide the "Plugins → Install Plugins" menu.
remove_submenu_page('plugins.php', 'tgmpa-install-plugins');
//Hide the "Settings → VK Blocks" menu.
remove_submenu_page('options-general.php', 'vk_blocks_options');
}
add_action('admin_menu', 'plt_hide_vk_blocks_menus', 11);
Where do I put this code?
How to Hide the "Vektor WordPress Information" Dashboard Widget
function plt_hide_vk_blocks_dashboard_widgets() {
$screen = get_current_screen();
if ( !$screen ) {
return;
}
//Remove the "Vektor WordPress Information" widget.
remove_meta_box('vk_dashboard_widget', 'dashboard', 'normal');
}
add_action('wp_dashboard_setup', 'plt_hide_vk_blocks_dashboard_widgets', 20);