-
Home
-
DethemeKit for Elementor
- Tips
How to Hide the "Dethemekit" Admin Menu
function plt_hide_dethemekit_for_elementor_menus() {
//Hide the "Settings → Dethemekit" menu.
remove_submenu_page('options-general.php', 'dethemekit-setting-page');
}
add_action('admin_menu', 'plt_hide_dethemekit_for_elementor_menus', 101);
Where do I put this code?
How to Hide the "DethemeKit For Elementor" Dashboard Widget
function plt_hide_dethemekit_for_elementor_dashboard_widgets() {
$screen = get_current_screen();
if ( !$screen ) {
return;
}
//Remove the "DethemeKit For Elementor" widget.
remove_meta_box('dethemekit_dashboard_widget', 'dashboard', 'normal');
}
add_action('wp_dashboard_setup', 'plt_hide_dethemekit_for_elementor_dashboard_widgets', 20);