role overlap – two shortcodes
-
hey
when i add the following shoirtcodes to my page, it shows both the content (for customer and vendor) to both customers and vendors.the customer user role is generated by woocommerce and vendor role by wc-vendors plugin.
[eyesonly logged="out"] You need to be <a href="/my-account" target="_blank">logged in</a> to see this content. [/eyesonly] [eyesonly level="customer" logged="in"] [contact-form-7 id="17940" title="Vendor Application"] [/eyesonly] [eyesonly level="vendor" logged="in"] You already have vendor privileges! [/eyesonly]
I tried this too:
[eyesonly level="customer, vendor"] [eyesonlier level="customer"] [contact-form-7 id="17940" title="Vendor Application"] [eyesonliest level="vendor"] You are a vendor already! [/eyesonliest] [/eyesonlier] [/eyesonly]
but for vendor it shows nothing!
https://www.ads-software.com/plugins/eyes-only-user-access-shortcode/
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘role overlap – two shortcodes’ is closed to new replies.