Skip to main content

Dynamic Visibility - Triggers - User and Role

Updated today

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 their unique keys, such as ID, username, or Email.

If multiple users need to separate them by a comma

1,23,admin@email.ooo,17

Examples:

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

User Capabilities

Select a capability from the searchable dropdown. The element will be visible only to users who have the selected capability.

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 their phone number, to edit their profile and add it.

Remote IP

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

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 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 it to him to get confirmation about your new content before releasing it to the public.

Referrer

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

Example:

  • show a specific message to all visitors who 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 to Desktop users

Browser

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

Did this answer your question?