-
Notifications
You must be signed in to change notification settings - Fork 1
/
safety-net.php
38 lines (32 loc) · 1.2 KB
/
safety-net.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
33
34
35
36
37
38
<?php
/*
* Plugin Name: Safety Net
* Description: For Team51 Development Sites. Deletes user data and more!
* Version: 1.4.22
* Author: WordPress.com Special Projects
* Author URI: https://wpspecialprojects.wordpress.com
* Text Domain: safety-net
* License: GPLv3
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly
}
if ( defined( 'SAFETY_NET_PATH' ) ) {
return; // Return if another copy of the plugin is activated
}
define( 'SAFETY_NET_PATH', plugin_dir_path( __FILE__ ) );
define( 'SAFETY_NET_URL', plugin_dir_url( __FILE__ ) );
define( 'SAFETY_NET_BASENAME', plugin_basename( __FILE__ ) );
require_once __DIR__ . '/includes/admin.php';
require_once __DIR__ . '/includes/bootstrap.php';
require_once __DIR__ . '/includes/common.php';
require_once __DIR__ . '/includes/delete.php';
require_once __DIR__ . '/includes/delete-transients.php';
require_once __DIR__ . '/includes/utilities.php';
require_once __DIR__ . '/includes/deactivate-plugins.php';
require_once __DIR__ . '/includes/scrub-options.php';
if ( defined( 'WP_CLI' ) && WP_CLI ) {
require_once __DIR__ . '/includes/classes/cli/class-safetynet-cli.php';
}
// Fire a hook now that the plugin is ready.
do_action( 'safety_net_loaded' );