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 |