Skip to content

Release v3.1.0: Login Security & 2FA Management

Latest

Choose a tag to compare

@pimschaaf pimschaaf released this 30 Oct 14:41

馃攼 New Features

Login Security Commands

Two new WP-CLI commands for managing Wordfence Login Security module:

  • wp wfls-config - Generic Login Security configuration

    • Get/set individual Login Security settings
    • List all settings with search and filtering
    • Export/import with --managed-only blueprint support
  • wp wfls-2fa - Role-based Two-Factor Authentication management

    • Configure 2FA requirements per role (required/optional/disabled)
    • Set grace periods for 2FA enforcement
    • Enable remember device feature
    • Quick command: wp wfls-2fa require-admin

馃搵 Usage Examples

Require 2FA for Administrators

wp wfls-2fa configure --administrator=required

Configure 2FA with Grace Period

wp wfls-2fa configure \
  --administrator=required \
  --editor=required \
  --enable-grace-period \
  --grace-period=7

List Current 2FA Status

wp wfls-2fa list

Export Login Security Settings

wp wfls-config export /tmp/login-security.json --managed-only

鈿欙笍 Technical Details

  • 20 Manageable Settings: Role-based 2FA, grace periods, CAPTCHA, XML-RPC, WooCommerce integration
  • Conditional Loading: Commands only load when Login Security module is active
  • Native API: Uses WordfenceLS\Controller_Settings API
  • Separate Table: Supports wp_wfls_settings table
  • Full Features: Dry-run mode, validation, export/import, force flags

馃摝 Installation

Download wf-settings-cli-3.1.0.zip and install via WordPress admin or WP-CLI:

wp plugin install wf-settings-cli-3.1.0.zip --activate

馃攧 Upgrade from v3.0.0

No breaking changes. Simply upgrade and the new Login Security commands will be available if the Login Security module is active.

馃摑 Full Changelog

See CHANGELOG for complete version history.

What's Changed in v3.1.0:

  • New: wp wfls-config command for managing Wordfence Login Security settings
  • New: wp wfls-2fa command for role-based 2FA management
  • Feature: Configure 2FA requirements per role (administrator, editor, author, contributor, subscriber)
  • Feature: Set 2FA grace periods and remember device options
  • Feature: Export/import Login Security settings with --managed-only support
  • Enhancement: 20 additional manageable settings for Login Security module
  • Enhancement: Conditional loading - Login Security commands only load when module is active

馃摎 Documentation

Full documentation available in README.md

Requirements

  • Wordfence Security plugin (with Login Security module for wfls-* commands)
  • WP-CLI
  • WordPress 5.0+
  • PHP 7.2+

Full Changelog: v3.0.0...v3.1.0