I need to display columns in a grid, based on current user meta. Think of it as if there are several price fields and I need that certain users only see a given column.
The user meta field is user_prices_view, and the values can be "regular price", "sale price" or "customer price".
The admins set any value they need to any user. Now, if when a View is shown for a user with "regular price" in meta, that user only sees the column with price A field; user with "sale price" only sees column with price B field, and obviously user with "customer price" only sees column with price C field.
In the View code I tried with something like:
[if current_user_meta="sale price"][sale_price][/if current_user_meta]
[if current_user_id show="user_prices_view" equals="sale price"][sale_price][/if current_user_meta]
...with no success.
The problem is there are no built-in conditionals to check user_meta values (set with Formidable Registration add-on). Some ideas?
Please login or Register to submit your answer
I use this plugin for such stuff. https://www.role-editor.com/
It looks outdated but is extremely useful and does the job.