How to Enable WPCodeBox Dark Mode in A...
Optimize your admin experience with WPCodeBox Dark Mode. Download this snippet to eas...

WPCodeBox
640
This WordPress snippet efficiently hides the default WordPress menu, allowing WPCodeBox2 to expand and utilize the full width of your display area for an optimized and distraction-free coding environment.
<?php
add_action('admin_head', function(){
if( isset( $_GET['page'] ) && $_GET['page'] === 'wpcodebox2' ) {
echo <<<EOD
<style type="text/css">
#adminmenuback {
margin-left: -160px !important;
}
#wpcontent {
margin-left: 0px !important;
}
#adminmenu {
display: none;
}
</style>
EOD;
}
});





