Logic for Customer Role

In this tutorial, we’ll make a conditional logic that:

  • Shows up in YayMail as “Customer Role”.

  • Lists all WordPress user roles dynamically (Subscriber, Customer, Shop Manager, your custom roles like B2B, etc.).

  • Lets you pick one in YayMail’s conditional logic dropdown.

  • Displays the element only if the customer’s role matches the selected role.

Step 1: Install a Snippets Plugin

Step 2: Add the Custom Snippet and Run Everywhere

Step 3: Check the New Conditional Logic in YayMail

Last updated

Was this helpful?