The last version of WordPress provides a new toolbar in frontend view when you are logged in. To disable this feature you can add the following code in the functions.php file in your active theme:

You’ll notice that the show_admin_bar filter is not removed, but it is only disabled through the useful function __return_false() :

In order to remove the show_admin_bar filter, you may use remove_filter() function. To do this, we must know the original function name hooked to the filter. But this is not always possible. So, a different way to realize the same result is:

However, the code above will remove the admin bar from both backend and frontend. If you wish to remove the admin bar from frontend only, you may use:

You may also add a check for user:

As usual, please don’t hesitate to leave any questions or comments in the feed below, and I’ll aim to respond to each of them.