Disable the WordPress admin bar on the frontend for users who do not pass the configured administrator check.
The snippet runs on after_setup_theme, leaves the admin bar untouched inside wp-admin, and keeps it visible for users who satisfy current_user_can( 'administrator' ). It is useful on membership or client-facing sites where logged-in non-admin users should not see the toolbar.