-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbootstrap.php
More file actions
44 lines (29 loc) · 1.04 KB
/
bootstrap.php
File metadata and controls
44 lines (29 loc) · 1.04 KB
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
39
40
41
42
43
44
<?php
namespace Stop_User_Enumeration;
// @TODO options for xforwarded
// If this file is called directly, abort.
if ( ! defined( 'WPINC' ) ) {
die;
}
define( 'STOP_USER_ENUMERATION_PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
define( 'STOP_USER_ENUMERATION_PLUGIN_VERSION', '1.3.29' );
// Include the autoloader so we can dynamically include the classes.
require_once( STOP_USER_ENUMERATION_PLUGIN_DIR . 'includes/autoloader.php' );
function run_stop_user_enumeration() {
/**
* Load freemius SDK
*/
$freemius = new \Stop_User_Enumeration\Includes\Freemius_Config();
$freemiusSDK = $freemius->init();
// Signal that SDK was initiated.
do_action( 'sue_fs_loaded' );
$freemiusSDK->add_action( 'after_uninstall', array( '\Stop_User_Enumeration\Includes\Uninstall', 'uninstall' ) );
/**
* The core plugin class that is used to define internationalization,
* admin-specific hooks, and public-facing site hooks.
*/
$plugin = new \Stop_User_Enumeration\Includes\Core( $freemiusSDK );
$plugin->run();
}
run_stop_user_enumeration();
?>