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 |