Hide WordPress Admin Toolbar Based On User Role

You can hide the WordPress admin toolbar to logged in users based on their user role and capabilities. First of all you can hide the toolbar on all front end pages from all users by adding to your functions.php add_filter( ‘show_admin_bar’, ‘__return_false’ ); Lets say you wanted regular subscriber users not to see the toolbar when…

Read More

Remove WordPress Backend Dashboard Widgets

remove-dashboard-widgets

WordPress backend dashboard widgets can be annoying, dangerous, fugly or anxiety producing overload for those leaning to the OCD side. Or you may want to not have your client install Gutenberg from the Try Gutenberg widget and make life interesting or inadvertently visit the Customiser and wreck havoc on your design. Luckily you can remove…

Read More