How to make a can’t hide widget?

to block the ablility to hide it, you can use that : const WIDGET_TO_SHOW = “example_dashboard_widget”; add_filter(“get_user_option_metaboxhidden_dashboard”, function ($result, $option, $user) { $result = array_diff($result, [WIDGET_TO_SHOW]); return $result; }, 10, 3); this is just server side. to be more clear for the user, you can use JavaScript to hide the checkbox in “screen options”.

Sorry, you are not allowed to access this page dashboard

Try to deactivate all your activated plugins 🙂 mainly your security plugins installed like wordfence. Check your .htaccess file, and your .htaccess file should look like – ‘ # BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^index\.php$ – [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule> # END WordPress … Read more

Merging Two menus in the backend into one menu

<div class=”menu-wrapper”> <div class=”menu1″> <?php wp_nav_menu( array( ‘theme_location’ => ‘menu-1’, ‘menu_id’ => ‘top-menu’, ) ); ?> </div> <div class=”menu2″> <?php wp_nav_menu( array( ‘theme_location’ => ‘menu-2’, ‘menu_id’ => ‘main-menu’, ) ); ?> </div> </div>