-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbrain-2fa.php
More file actions
38 lines (33 loc) · 824 Bytes
/
brain-2fa.php
File metadata and controls
38 lines (33 loc) · 824 Bytes
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
33
34
35
36
37
38
<?php
/**
* Plugin Name: Brain 2FA
* Description: Two Factor Authentication (2FA) plugin for WordPress.
* Version: 1.0.0
* Author: Braintum
* Author URI: https://www.braintum.com/
* Text Domain: brain2fa
* Domain Path: /languages
* License: GPLv2+
*
* @package Brain2FA
*/
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
// Composer autoload (preferred).
if ( file_exists( __DIR__ . '/vendor/autoload.php' ) ) {
require_once __DIR__ . '/vendor/autoload.php';
}
define( 'BRAIN_2FA_VERSION', '1.0.0' );
define( 'BRAIN_2FA_PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
define( 'BRAIN_2FA_PLUGIN_URL', plugin_dir_url( __FILE__ ) );
/**
* Main instance of Brain 2FA App.
*
* @return \Brain_2FA\App
*/
function brain_2fa(): \Brain_2FA\App {
return \Brain_2FA\App::instance();
}
// Initialize the plugin.
brain_2fa();