| 1 |
<?php |
| 2 |
|
| 3 |
/** |
| 4 |
* The plugin bootstrap file |
| 5 |
* |
| 6 |
* This file is read by WordPress to generate the plugin information in the plugin |
| 7 |
* admin area. This file also includes all of the dependencies used by the plugin, |
| 8 |
* registers the activation and deactivation functions, and defines a function |
| 9 |
* that starts the plugin. |
| 10 |
* |
| 11 |
* @link https://trewknowledge.com |
| 12 |
* @since 1.0.0 |
| 13 |
* @package GDPR |
| 14 |
* |
| 15 |
* @wordpress-plugin |
| 16 |
* Plugin Name: GDPR |
| 17 |
* Plugin URI: https://trewknowledge.com |
| 18 |
* Description: This plugin is meant to assist a Controller, Data Processor, and Data Protection Officer (DPO) with efforts to meet the obligations and rights enacted under the GDPR. |
| 19 |
* Version: 2.0.10 |
| 20 |
* Author: Trew Knowledge |
| 21 |
* Author URI: https://trewknowledge.com |
| 22 |
* License: GPL-2.0+ |
| 23 |
* License URI: http://www.gnu.org/licenses/gpl-2.0.txt |
| 24 |
* Text Domain: gdpr |
| 25 |
* Domain Path: /languages |
| 26 |
*/ |
| 27 |
|
| 28 |
// If this file is called directly, abort. |
| 29 |
if ( ! defined( 'WPINC' ) ) { |
| 30 |
die; |
| 31 |
} |
| 32 |
|
| 33 |
/** |
| 34 |
* Currently plugin version. |
| 35 |
* Start at version 1.0.0 and use SemVer - https://semver.org |
| 36 |
* Rename this for your plugin and update it as you release new versions. |
| 37 |
*/ |
| 38 |
define( 'GDPR_VERSION', '2.0.10' ); |
| 39 |
|
| 40 |
/** |
| 41 |
* The minimum PHP version required to run the plugin. |
| 42 |
*/ |
| 43 |
define( 'GDPR_REQUIRED_PHP_VERSION', '5.6' ); |
| 44 |
|
| 45 |
/** |
| 46 |
* The code that runs during plugin activation. |
| 47 |
* This action is documented in includes/class-gdpr-activator.php |
| 48 |
*/ |
| 49 |
function activate_gdpr() { |
| 50 |
require_once plugin_dir_path( __FILE__ ) . 'includes/class-gdpr-activator.php'; |
| 51 |
GDPR_Activator::activate(); |
| 52 |
} |
| 53 |
|
| 54 |
/** |
| 55 |
* The code that runs during plugin deactivation. |
| 56 |
* This action is documented in includes/class-gdpr-deactivator.php |
| 57 |
*/ |
| 58 |
function deactivate_gdpr() { |
| 59 |
require_once plugin_dir_path( __FILE__ ) . 'includes/class-gdpr-deactivator.php'; |
| 60 |
GDPR_Deactivator::deactivate(); |
| 61 |
} |
| 62 |
|
| 63 |
register_activation_hook( __FILE__, 'activate_gdpr' ); |
| 64 |
register_deactivation_hook( __FILE__, 'deactivate_gdpr' ); |
| 65 |
|
| 66 |
/** |
| 67 |
* The core plugin class that is used to define internationalization, |
| 68 |
* admin-specific hooks, and public-facing site hooks. |
| 69 |
*/ |
| 70 |
require plugin_dir_path( __FILE__ ) . 'includes/class-gdpr.php'; |
| 71 |
require plugin_dir_path( __FILE__ ) . 'includes/helper-functions.php'; |
| 72 |
|
| 73 |
|
| 74 |
/** |
| 75 |
* Begins execution of the plugin. |
| 76 |
* |
| 77 |
* Since everything within the plugin is registered via hooks, |
| 78 |
* then kicking off the plugin from this point in the file does |
| 79 |
* not affect the page life cycle. |
| 80 |
* |
| 81 |
* @since 1.0.0 |
| 82 |
*/ |
| 83 |
new GDPR(); |
| 84 |
|