Want to get rid of admin bar… no, we mean REALLY get rid of it. Leave no trace of it every existing? Wishing admin-bar was never born? We have a solution for you. Below is code delivered from a code-hitman that wishes to remain anonymous. Kill your admin bar today with this code snippet:
1 2 3 4 5 |
/* Disable the Admin Bar. */ add_filter( 'show_admin_bar', '__return_false' ); remove_action('wp_head', '_admin_bar_bump_cb'); wp_deregister_script('admin-bar'); wp_deregister_style('admin-bar'); |
In the past we have move and removed items from the “WordPress admin bar”. With the release of WordPress 3.3, code name Sonny, we no longer feel we need to modify the bar. Its solid implementation does exactly what we are looking for now, however, we wanted to save and mention the code that was…
Read more© Copyright 2019 Sethmatics Websites All Rights Reserved.