Install
This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.
Install straight from GitHub with WP-CLI:
wp plugin install https://github.com/wordpress/wporg-two-factor/archive/refs/heads/trunk.zipNo built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.
WordPress.org-specific customizations for the Two Factor plugin
Setup
npm installnpm run build --workspacesnpx wp-env start- Visit
https://localhost:8888/users/admin/edit/account/to view the custom settings UI. - If you want to make JS changes, run
npm run start --workspaces.
Testing
PHP unit tests can be run with npm test. composer run coverage will generate a coverage report.
JavaScript unit tests can be run with npm run test:js.
Security
Please privately report any potential security issues to the WordPress HackerOne program.