Vishmax.com
Read

How to disable the WordPress admin bar for all users and visitors

We design and develop websites, digital experiences, and software solutions for growing businesses.

Add the following code to your functions.php file and it will disable the WordPress admin bar for all users and visitors.

<?php remove_action( 'init', '_wp_admin_bar_init' ); ?>