-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathwp-otp.php
executable file
·32 lines (26 loc) · 987 Bytes
/
wp-otp.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<?php
/**
* Plugin Name: WP-OTP
* Plugin URI: https://wordpress.org/plugins/wp-otp/
* Description: WP-OTP adds 2 Factor Authentication using TOTP. (Based on "WP Secure Login" by Brijesh Kothari)
* Version: 0.6.1
* Author: Armando Lüscher
* Author URI: https://noplanman.ch
* License: GPLv2 or later
* License URI: https://www.gnu.org/licenses/gpl-2.0.html
* GitLab Plugin URI: https://git.feneas.org/noplanman/wp-otp
* GitLab Branch: master
*
* @package Wp_Otp
* @since 0.1.0
*/
namespace Wp_Otp;
defined( 'WPINC' ) || exit;
// Define constants.
define( 'WP_OTP_SLUG', 'wp-otp' );
define( 'WP_OTP_VERSION', '0.6.1' );
require_once __DIR__ . '/vendor/autoload.php';
require_once __DIR__ . '/includes/class-wp-otp.php';
register_activation_hook( __FILE__, [ Wp_Otp_Setup::class, 'activate' ] );
register_deactivation_hook( __FILE__, [ Wp_Otp_Setup::class, 'deactivate' ] );
( new Wp_Otp() )->run();