Use /en in logo link if en is selected

You should use <a href=”<?php echo bloginfo(‘url’); ?>”>

instead of <a href=”<?php echo esc_url( home_url( ‘/’ ) ); ?>”>

so that, when selecting a different language, the selected language gets stuck on home url.

Disable admin bar for non admins

Disable the Admin Bar for non-Admins only

Expanding on the previous example, here are two snippets that disable the Admin Bar for non-Admins and Editors. Place either of the following in functions.php:

// show admin bar only for admins
if (!current_user_can('manage_options')) {
	add_filter('show_admin_bar', '__return_false');
}
// show admin bar only for admins and editors
if (!current_user_can('edit_posts')) {
	add_filter('show_admin_bar', '__return_false');
}

As you might guess, any setting may be used for current_user_can(), so it’s easy to show/hide the Admin Bar for any particular group of users.

More on digwp.com/2011/04/admin-bar-tricks/