• after we updated the shop from 1.6 to 2.2.8 admin bar disappeared for non-admins on our site. After checking php files of the plugin, I figured it out how to fix it – I changed the value of woocommerce_lock_down_admin to no in wp_options table in our database.

    The worst thing is that woocommerce_lock_down_admin option is set randomly. at least in our case. on our beta site when we updated, it was set to no, so we thought everything is fine.

    Now I want to know where in back office this option can be set? I can’t see it in /wp-admin/admin.php?page=wc-settings. After this case I want to compare other woocommerce options on our beta and production site to catch potential differences.

    thanks in advance for your answer

    https://ww.wp.xz.cn/plugins/woocommerce/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Having exactly the same problem, as we´re using Buddypress the bar is kind of necessary. Don´t want to go in to the database and change without understanding the reason why the bar is disbled.

    Thanks //

    Also using 2.2.8 but couldn´t find woocommerce_lock_down_admin in the wp_options table

    Thread Starter lustek

    (@lustek)

    try:

    SELECT *
    FROM <code>wp_options</code>
    WHERE <code>option_name</code> LIKE 'woocommerce_lock_down_admin'

    maybe one of your security plugins changed the prefix in the names your database table from wp_ to other random one – then you need to look for the table with the random beginning 🙂

    Thanks, still didn´t find it

    I been in the code and changed the filters for this so now I have an admin bar again. This will be removed in the next update so it´s not a good way. I really would like to now the reason for this function.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘hiding admin bar function’ is closed to new replies.