That’s strange because I got this snippet from one of your colleagues who advised another user to use it. The only change I made was replacing ‘listing’ with ‘vendor’ in the ‘hivepress/v1/models/vendor/attributes’ string.
Here is where I got the snippet from: How can i hide contact details to the logged out users? - #2 by yevhen