Have an issue, and can’t find the root cause of this. Any help will be appreciated.
We have an User field, setup like this:
That field should be displayed at WooCommerce’s orders. And it does:
But the field is only populated correctly when an admin is logged in and he views the order.
When a non admin user is logged in and view an order, for example a shop manager (from WooCommerce), the field shows up, but no user is listed on the select-search:
I already tested disabling all the plugins, except for ACF and WooCommerce, and the result is the same.
Tested it in a clean WP with just Storefront theme, WooCommerce and ACF Pro enabled, and same result. No users in the metabox (for a field setup like the screenshot) if you are logged in as a non admin user.
It’s a bug? Or i’m missing something else?
Thanks in advance for the time and help.
Forgot to mention that roles is something that i already checked.
By default, Shop Manager has the capability list_users, and as you can see here https://prnt.sc/otih6r it’s given properly there where i’m testing this.
And even if i give Shop Managers the entire Users capabilities (all of them), the box still doesn’t populate with any user at all.
Hi! I also have a similar issue with a custom select that shows users in a given role on a WooCommerce order.
I thought I had fixed it by emptying the browser cache and hard reloading, but some people have had the issue return. I’m going to investigate today and see if I can clarify the cause.
Just thought I would add a post here so you know you’re not alone! 😉
I have the same problem when outputting custom user meta fields to the BBPress User Profile page. It outputs the values of those fields perfectly for anyone who has Admin role but for lower roles, even though the data is there, it doesn’t output. I am wondering if it has to do with the Permissions set on the Field Group (Add/Edit, Admin) but I thought this only affected the EDITING of those fields. Help?
You must be logged in to reply to this topic.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!