Skip to content

Commit

Permalink
Update doc block for filter and bump version.
Browse files Browse the repository at this point in the history
  • Loading branch information
StevenDufresne committed Sep 23, 2024
1 parent 5a60522 commit 61121cd
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
13 changes: 10 additions & 3 deletions class-two-factor-core.php
Original file line number Diff line number Diff line change
Expand Up @@ -833,9 +833,16 @@ public static function login_html( $user, $login_nonce, $redirect_to, $error_msg
}
}

/*
* Allow plugins to add links to the two-factor login form.
*/
/**
* Filters the backup links displayed on the two-factor login form.
*
* Plugins can use this filter to modify or add links to the two-factor authentication
* login form, allowing users to select backup methods for authentication.
*
* @since 0.9.2
*
* @param array $links An array of backup links displayed on the two-factor login form.
*/
$links = apply_filters( 'two_factor_login_backup_links', $links );
?>

Expand Down
2 changes: 1 addition & 1 deletion two-factor.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
* Plugin Name: Two Factor
* Plugin URI: https://wordpress.org/plugins/two-factor/
* Description: Enable Two-Factor Authentication using time-based one-time passwords, Universal 2nd Factor (FIDO U2F, YubiKey), email, and backup verification codes.
* Version: 0.9.1
* Version: 0.9.2
* Requires at least: 6.3
* Requires PHP: 7.2
* Author: Plugin Contributors
Expand Down

0 comments on commit 61121cd

Please sign in to comment.