WordPress application passwords exist to let a script, an app or a cron job authenticate without a human present. They deliberately bypass interactive MFA — that is their purpose, and demanding a TOTP code from a scheduled job would be incoherent.
So the controls that make sense for them are not "require a second factor". They are eligibility, lifetime and visibility.
Eligibility
| Key | Default |
|---|---|
app_passwords.global_disable | false |
app_passwords.allowed_roles | empty (anyone) |
global_disable turns the feature off site-wide. allowed_roles, once non-empty, restricts it to those roles.
On most sites nobody below editor has any reason to hold one.
Lifetime
| Key | Default |
|---|---|
app_passwords.default_ttl_days | 0 (no expiry) |
app_passwords.idle_revoke_days | 0 (never) |
default_ttl_days is stamped on new credentials only. Setting it does not retroactively expire the ones already out there — an important distinction if you were expecting it to clean up.
idle_revoke_days revokes credentials that have not been used for N days, which is the one that actually reduces your exposure over time. A credential minted for a migration two years ago and unused since is pure risk with no remaining benefit.
Rules from login security
Application passwords can be held to the same rules as interactive logins:
| Key | Default |
|---|---|
app_passwords.enforce_ip_rules | true |
app_passwords.enforce_country | true |
app_passwords.enforce_lockout | true |
app_passwords.enforce_hours | false |
The first three default on, because an allowlist that covers your login form and not your REST API is an allowlist with a hole in it.
Hours defaults off, because a cron job running at 3am is the normal case and blocking it would be surprising.
The inventory
A site-wide list of every application password: which account holds it, when it was created, when it was last used, and from where.
That last column is the useful one. It turns "we have some API credentials somewhere" into a list you can work down.
Revocation
Individually from the inventory, in bulk, automatically by idle policy, or all at once for one account through Containment.
Also worth turning on: password_policy.reset_revokes_app_passwords, so a password reset takes the application passwords with it. See Password policies.
Disabling an account
Disabling blocks application passwords too, in the free plugin, with no premium module required. That is the fourth door, and it is the one a password change leaves open.
What gets logged
app_password_created and app_password_deleted are recorded by the free plugin. Premium adds policy denials and idle revocations, and the itxuo_app_password_denied filter lets you inspect or override a denial.
The kill switch
define( 'ITXUO_DISABLE_APP_PASSWORD_POLICY', true );
Stands the policy down if it is blocking something you need working right now.