How to Connect Apps with Application Passwords
A mobile app, a desktop publishing tool or an integration that signs in with a username and password over XML-RPC or the REST API cannot show a code screen. For a 2FA account, those password sign ins are refused with this message: “This account uses two-factor authentication. Use an application password to connect apps.”
Application passwords are WordPress’s own answer, and they keep working with 2FA on. On the demo, an application password sign in went straight through while a plain password over XML-RPC and over the REST API was refused. A real REST API request made with Amara Okafor’s application password returned her account.
Step 1: Open the user’s profile
Section titled “Step 1: Open the user’s profile”Users → Profile, or the integration user’s profile, then Application Passwords.
Step 2: Create a password
Section titled “Step 2: Create a password”Type the app’s name and press Add New Application Password. WordPress shows it once.
Step 3: Use it in the app
Section titled “Step 3: Use it in the app”Paste it into the app in place of the account password. Revoke it from the same section when the app is no longer used.
Accounts that cannot use one
Section titled “Accounts that cannot use one”For a service account that must sign in through a login form, exclude it instead. See How to Exclude Service Accounts from 2FA.

