PluginProbe ʕ •ᴥ•ʔ
WP 2FA – Two-factor authentication for WordPress / 1.6.2
WP 2FA – Two-factor authentication for WordPress v1.6.2
1.7.1 2.0.0 2.0.1 2.1.0 2.2.0 2.2.1 2.3.0 2.4.0 2.4.1 2.4.2 2.5.0 2.6.0 2.6.1 2.6.2 2.6.3 2.6.4 2.7.0 2.8.0 2.9.0 2.9.1 2.9.2 2.9.3 3.0.0 3.0.1 3.1.0 3.1.1 3.1.1.2 trunk 1.2.0 1.3.0 1.4.0 1.4.1 1.4.2 1.5.0 1.5.1 1.5.2 1.6.0 1.6.1 1.6.2 1.7.0
wp-2fa / wp-2fa.php
wp-2fa Last commit date
dist 5 years ago includes 5 years ago languages 5 years ago vendor 5 years ago index.php 5 years ago readme.txt 5 years ago wp-2fa.php 5 years ago
wp-2fa.php
37 lines
1 <?php // phpcs:ignore
2 /**
3 * Plugin Name: WP 2FA - Two-factor authentication for WordPress
4 * Plugin URI: https://www.wpwhitesecurity.com/wordpress-plugins/wp-2fa/
5 * Description: Easily add an additional layer of security to your WordPress login pages. Enable Two-Factor Authentication for you and all your website users with this easy to use plugin.
6 * Version: 1.6.2
7 * Author: WP White Security
8 * Author URI: https://www.wpwhitesecurity.com
9 * Text Domain: wp-2fa
10 * Domain Path: /languages
11 * Network: true
12 * @package WP2FA
13 */
14
15 // Useful global constants.
16 define( 'WP_2FA_VERSION', '1.6.2' );
17 define( 'WP_2FA_URL', plugin_dir_url( __FILE__ ) );
18 define( 'WP_2FA_PATH', plugin_dir_path( __FILE__ ) );
19 define( 'WP_2FA_INC', WP_2FA_PATH . 'includes/' );
20 define( 'WP_2FA_FILE', __FILE__ );
21 define( 'WP_2FA_BASE', plugin_basename( __FILE__ ) );
22 define( 'WP_2FA_LOGS_DIR', 'wp-2fa-logs' );
23
24 // Include files.
25 require_once WP_2FA_INC . 'functions/core.php';
26
27 // Require Composer autoloader if it exists.
28 if ( file_exists( WP_2FA_PATH . '/vendor/autoload.php' ) ) {
29 require_once WP_2FA_PATH . 'vendor/autoload.php';
30 }
31
32 // run any required update routines
33 \WP2FA\Utils\Migration::migrate();
34
35 $wp2fa = \WP2FA\WP2FA::get_instance();
36 $wp2fa->init();
37