The :disabled_admin Merge Tag Modifier

There are certain situations where you'll want to disable a View filter when the currently logged-in user is an Administrator.

One of these situations is when you need your View to list entries assigned to a specific user, but you also want to display all entries if the user is an Administrator.

In that, we'll add the :disabled_admin modifier to the {user:ID} Merge Tag:

{user:ID:disabled_admin}

Example:

Screenshot showing the Advanced Filter section in the View Settings panel with two rules added.

With the filters above, the View will:

  • Display entries created by the currently logged-in user (created_by meta field);
  • Display all entries if the currently logged-in user is an Administrator;
  • Display entries where the user ID of the currently logged-in user matches the ID stored in a form field (the field "Assigned To" in the example above).
Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.

Still need help? Contact Us Contact Us