This Pro tutorial provides the steps to output elements based on their CSS class to users of the specified role in WordPress when using Bricks Builder.
We shall set up two conditions:
Elements having a class of for-admins to be rendered only to admins.
Elements having a class of for-subscribers to be rendered only to subscribers.
Add the following in child theme's functions.php or a snippets plugin:
Sridhar Katakam is a WordPress expert with more than 12 years of experience. Sridhar is the founder of WPDevDesign and BricksLabs. He lives in Melbourne, Australia.