This commit is contained in:
Javier Casares 2026-03-28 09:59:03 +00:00
commit b8e17df2db
17 changed files with 1145 additions and 732 deletions

View file

@ -3,7 +3,7 @@
* Plugin Name: Two Factor Extended
* Plugin URI: https://git.robotstxt.es/ROBOTSTXT/two-factor-extended
* Description: Extends the WordPress Two Factor plugin with advanced role-based controls, forced 2FA methods, and enhanced administrative features for single-site and Multisite installations.
* Version: 1.0.0
* Version: 1.0.1
* Requires at least: 6.7
* Requires PHP: 8.2
* Requires Plugins: two-factor
@ -18,7 +18,7 @@
* Primary Branch: main
*
* @package TwoFactorExtended
* @version 1.0.0
* @version 1.0.1
*/
// Prevent direct access.
@ -27,7 +27,7 @@ if ( ! defined( 'ABSPATH' ) ) {
}
// Define plugin constants.
define( 'TWO_FACTOR_EXTENDED_VERSION', '1.0.0' );
define( 'TWO_FACTOR_EXTENDED_VERSION', '1.0.1' );
define( 'TWO_FACTOR_EXTENDED_PLUGIN_FILE', __FILE__ );
define( 'TWO_FACTOR_EXTENDED_PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
define( 'TWO_FACTOR_EXTENDED_PLUGIN_URL', plugin_dir_url( __FILE__ ) );
@ -48,7 +48,7 @@ define( 'TWO_FACTOR_EXTENDED_NETWORK_OPTION_VERSION', 'two_factor_extended_netwo
*
* @since 0.1.0
*/
function two_factor_extended_activate() {
function two_factor_extended_activate(): void {
// Store plugin version.
update_option( TWO_FACTOR_EXTENDED_OPTION_VERSION, TWO_FACTOR_EXTENDED_VERSION );
@ -70,7 +70,7 @@ function two_factor_extended_activate() {
*
* @since 0.1.0
*/
function two_factor_extended_deactivate() {
function two_factor_extended_deactivate(): void {
// Clear any scheduled cron events.
wp_clear_scheduled_hook( 'two_factor_extended_daily_cleanup' );