User Coverage

Overview

In the PRO version, each password policy has a Who it applies to card that controls which users the policy applies to. This allows you to create different password policies for different user groups — for example, a strict policy for administrators and a standard policy for subscribers.

To open the card, go to Settings → Login Security, open the Policies tab, click the policy’s name, and choose Who it applies to in the row of links at the top, or scroll to it. The card’s summary says who the policy covers, such as Everyone, the roles and number of people it names, or Nobody yet.

Coverage Options

Everyone Who Logs In

By default, the Everyone who logs in switch is on. While it is on, the policy applies to every user on your site.

Targeting by Role

To apply a policy only to users with specific roles:

  1. Turn off the Everyone who logs in switch.
  2. In the Apply to users with role selector that appears, select the roles this policy should cover (e.g., Administrator, Editor, Subscriber).

Targeting by User

To apply a policy to specific individual users:

  1. Turn off the Everyone who logs in switch.
  2. In the Apply to specific users selector that appears, search for and select individual users by username.

You can combine role-based and user-based targeting. A user matches the policy if they belong to any of the selected roles or are listed as a specific user.

When the PRO plugin is network-activated, an existing account’s roles on all its member sites count toward coverage. The same policy applies when the account resets or changes its password on a site it does not belong to, including the main site’s reset form. If roles on different sites match different policies, the first matching policy in the configured order applies, so each account is covered by one policy across the whole network. Expiry reminders use the same first matching policy and are sent only when that policy enables a maximum password age. Site-activated installations use roles on the current site.

Click Save to apply the change.

The Who it applies to card, with roles chosen

Who's Covered

Beside the list of policies, the Who’s covered card counts how many accounts each policy covers. It counts them the way policies are picked, including your unsaved changes, so you can see the effect of a change before you save it.

  • The card starts with the number of accounts on the site, or on the network for a network-activated plugin.
  • Each policy gets a row with the number of accounts it covers. An inactive policy covers nobody, so its row reads, for example, Inactive · would cover 4 accounts.
  • Exempt from every policy counts the accounts that code on your site exempts from the policies with the password_requirements__is_user_excluded_from_policy filter, when there are any. See Hooks and Filters.
  • The card ends with Every account is covered by a policy (or Every account that is not exempt is covered by a policy, when some accounts are exempt), or with how many accounts have no policy.

Each account counts once, under the first active policy that matches it. On a network, that is the first policy that matches the account’s role on any site it belongs to, which is the policy its password is checked against on every site. The active policies’ counts, the exempt accounts and the accounts with no policy add up to the total.

Policy Priority

When multiple policies are active, they are evaluated from top to bottom in the order they appear on the Policies tab. The first policy whose coverage matches a user is the one that applies. Remaining policies are ignored for that user. Inactive policies are skipped.

To reorder policies, drag a policy by its handle on the Policies tab, or use Move up and Move down in its row’s menu. With the keyboard, focus the handle, press Space, move the policy with the arrow keys, and press Space again to drop it. Escape cancels the move.

Warning: Ensure that your policies are ordered from most specific to least specific. A broad “all users” policy placed above a role-specific policy would prevent the role-specific policy from ever being applied.

Account Deletion and Plugin Removal

Deleting an account removes its username from explicit user assignments in saved settings and settings history. On multisite, deleting the account from the network cleans its saved assignments across all sites and networks. Removing an account from only one site keeps its assignments because the account still exists.

Uninstalling the PRO plugin clears every explicit user assignment from site and network settings and their history, including assignments to accounts that no longer exist. Policies, selected roles, all-users coverage, and unrelated settings shared with the free plugin remain saved.

If the settings cannot be saved during this cleanup, the failure is logged and the account deletion or plugin removal still completes. The plugin does not try again later. A username left in the current settings is dropped the next time the settings are saved, because assignments to accounts that no longer exist are not kept. An entry in the settings history that still names a deleted account keeps that username and can no longer be restored.