PluginProbe ʕ •ᴥ•ʔ
WP 2FA – Two-factor authentication for WordPress / 1.4.0
WP 2FA – Two-factor authentication for WordPress v1.4.0
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 6 years ago readme.txt 5 years ago wp-2fa.php 5 years ago
wp-2fa.php
35 lines
1 <?php // phpcs:ignore
2 /**
3 * Plugin Name: WP 2FA - Two-factor authentication for WordPress
4
5 * Plugin URI: https://www.wpwhitesecurity.com
6 * 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.
7 * Version: 1.4.0
8 * Author: WP White Security
9 * Author URI: https://www.wpwhitesecurity.com
10 * Text Domain: wp-2fa
11 * Domain Path: /languages
12 * Network: true
13 * @package WP2FA
14 */
15
16 // Useful global constants.
17 define( 'WP_2FA_VERSION', '1.4.0' );
18 define( 'WP_2FA_URL', plugin_dir_url( __FILE__ ) );
19 define( 'WP_2FA_PATH', plugin_dir_path( __FILE__ ) );
20 define( 'WP_2FA_INC', WP_2FA_PATH . 'includes/' );
21 define( 'WP_2FA_FILE', __FILE__ );
22 define( 'WP_2FA_BASE', plugin_basename( __FILE__ ) );
23
24
25 // Include files.
26 require_once WP_2FA_INC . 'functions/core.php';
27
28 // Require Composer autoloader if it exists.
29 if ( file_exists( WP_2FA_PATH . '/vendor/autoload.php' ) ) {
30 require_once WP_2FA_PATH . 'vendor/autoload.php';
31 }
32
33 $wp2fa = \WP2FA\WP2FA::get_instance();
34 $wp2fa->init();
35