• Resolved abumalick

    (@abuhurayra)


    admin_bar is showing with user of woocommerce (customer, etc…).
    This code is the cause :
    function mt_admin_bar() {
    add_action(‘admin_bar_menu’, ‘maintenance_add_toolbar_items’, 100);
    if (!is_super_admin() ) {
    $mt_options = mt_get_plugin_options(true);
    if (isset($mt_options[‘admin_bar_enabled’]) && is_user_logged_in()) {
    add_filter(‘show_admin_bar’, ‘__return_true’);
    } else {
    add_filter(‘show_admin_bar’, ‘__return_false’);
    }
    }
    }

    keep up your work

    https://wordpress.org/plugins/maintenance/

Viewing 7 replies - 1 through 7 (of 7 total)
  • Hello,

    Please, make sure that user roles are set correctly. Additionally, you can disable admin bar for specific roles in Users options > Toolbar. Or you can provide us ftp access to your website and we’ll fix the issue.

    Please submit a request to our support:
    http://support.fruitfulcode.com/hc/en-us/requests/new

    Regards

    Thread Starter abumalick

    (@abuhurayra)

    Thanks for feedback.
    I didn’ t change the roles, it is the default ones for woocommerce.

    Disabling the toolbar for these woocommerce users didn’t change a thing, the toolbar was still displaying.

    I fixed this by editing your function:
    function mt_admin_bar() {
    add_filter(‘show_admin_bar’, ‘__return_false’);
    }

    Mr. Abumalick has the point, the plugin is breaking the show_admin_bar action. Please fix this in a next release.

    Last version 3.0 updated 21 hours ago did not fix this admin bar issue… I had to manually edit the function again.

    Disabled this plug-in because customers saw the admin bar. Please fix this issue.

    Hi,

    Unfortunately we can’t reproduce this problem on our demo. All work correctly.
    If you want to solve this issue please provide us FTP access to your website.

    Please submit a request to our support:
    http://support.fruitfulcode.com/hc/en-us/requests/new

    Regards

    Hjsurk,

    Make sure that Admin bar option is disabled in Maintenance options.

    Regards

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Bug with admin_bar with woocommerce users’ is closed to new replies.