Problem:
Setting up a filter for a custom user role field - how to filer and display WooCommerce orders based on different role
Solution:
You can pass the role name as view's shortcode argument and then use the 'wpv_filter_query' filter to filter the orders based on the passed role.
You can find the proposed solution in this case with the following reply:
https://toolset.com/forums/topic/setting-up-a-filter-for-a-custom-user-role-field/#post-2258051
Relevant Documentation:
- https://toolset.com/documentation/programmer-reference/views-filters/#wpv_filter_query
This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.
Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.
Sun | Mon | Tue | Wed | Thu | Fri | Sat |
---|---|---|---|---|---|---|
- | 10:00 – 13:00 | 10:00 – 13:00 | 10:00 – 13:00 | 10:00 – 13:00 | 10:00 – 13:00 | - |
- | 14:00 – 18:00 | 14:00 – 18:00 | 14:00 – 18:00 | 14:00 – 18:00 | 14:00 – 18:00 | - |
Supporter timezone: Asia/Kolkata (GMT+05:30)
This topic contains 19 replies, has 2 voices.
Last updated by 2 years, 11 months ago.
Assisted by: Minesh.