I have a client with the following issue: I need to be able to split their WooCommerce WordPress site into essentially two categories. If a user is logged in as a “Wholeseller”, only products in the “Wholesale” category get pulled from the database. However if the user is not logged in or is logged in but not a “Wholeseller”, then
Tag: custom-taxonomy
Get custom product attributes in Woocommerce
In Woocommerce, I am trying to get product custom attribute values but I fail miserably and I don’t get anything. So I tried: And I’m getting this raw data: I know that there is a value because it is shown in the attribute section, but I just can’t find a way to get it displayed with my custom code. Answer