Dynamic Visibility - Triggers - User & Role
Updated over a week ago

Roles

Select one or more roles from the current site-defined Roles (Administrator, Subscriber, etc.).
To make it easier, Visitors (non-logged users) will be considered as a Role.

Example:

  • a private content available only for registered users (like Membership, with multi-level Roles);

  • some particular notes only for administrators;

  • a registration form or a CTA visible by non-logged users.

Selected Users

You can specify one or more Users, writing one of his unique keys like ID, username, or Email.

If multiple users need to separate them by a comma

1,pippo,23,admin@email.ooo,17

Examples:

  • show specific content for some users without grouping them with a role;

Show content only to the current Post Author

User Capabilities

Write the user capability string.

User Field

Select a User Field (standard Field and User Meta field) from all available (ACF and native).

It works only for logged-in users. For visitors, the result is always false.

The second step is to select what kind of value is expected:


Example:

  • show an alert for each User that shows his phone number, to edit his Profile and add it.

Remote IP

User differs from a unique IP, so you can specify it and limit it for single connections.

If there are multiple IPs, you need to separate them by a comma 8.8.8.8,4.4.4.4,123.255.255.255

Example:

  • your agency has got a static IP address so you can show specific sections only for your team;

  • your client has got a static IP address, so you can preview to him to get confirmation about your new contents before releasing them as public.

Referrer

Enable it and fill the text area with the site URL in the format "example.com" (without protocol, port, third level, and ur). If multiple sites write them one for line.

Example:

  • show a specific message to all visitors that come from Facebook

Max Per user

You can set the maximum number of times the visibility settings will work for a user.

Responsive

Select a specific category of devices defined by its size:

  • Desktop and TV

  • Mobile and Tablet

We will use the native WordPress function wp_is_mobile
โ€‹

Example:

  • create a custom interface for mobile devices and another for desktops in the same template maintaining a lightweight code (usually you simply hide the unwanted by CSS but the content is duplicated in the HTML code)

  • limit some advanced functions only for Desktop user

Browser

Select one or more browsers. We will use the native WordPress browser detection:
Example:

  • some technology not working well on specific Browser (like Flash on Safari or CSS FlexBox on IE), so is better to remove it.

Did this answer your question?