PluginProbe
GDPR / 2.0.6
GDPR v2.0.6
trunk 1.4.7 2.0.0 2.0.1 2.0.10 2.0.2 2.0.3 2.0.4 2.0.5 2.0.6 2.0.7 2.0.8 2.0.9 2.1.0 2.1.1 2.1.2
gdpr / gdpr.php

gdpr.php in GDPR 2.0.6, at gdpr.php

79 lines 2.4 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
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.6
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.6' );
39
40 /**
41 * The code that runs during plugin activation.
42 * This action is documented in includes/class-gdpr-activator.php
43 */
44 function activate_gdpr() {
45 require_once plugin_dir_path( __FILE__ ) . 'includes/class-gdpr-activator.php';
46 GDPR_Activator::activate();
47 }
48
49 /**
50 * The code that runs during plugin deactivation.
51 * This action is documented in includes/class-gdpr-deactivator.php
52 */
53 function deactivate_gdpr() {
54 require_once plugin_dir_path( __FILE__ ) . 'includes/class-gdpr-deactivator.php';
55 GDPR_Deactivator::deactivate();
56 }
57
58 register_activation_hook( __FILE__, 'activate_gdpr' );
59 register_deactivation_hook( __FILE__, 'deactivate_gdpr' );
60
61 /**
62 * The core plugin class that is used to define internationalization,
63 * admin-specific hooks, and public-facing site hooks.
64 */
65 require plugin_dir_path( __FILE__ ) . 'includes/class-gdpr.php';
66 require plugin_dir_path( __FILE__ ) . 'includes/helper-functions.php';
67
68
69 /**
70 * Begins execution of the plugin.
71 *
72 * Since everything within the plugin is registered via hooks,
73 * then kicking off the plugin from this point in the file does
74 * not affect the page life cycle.
75 *
76 * @since 1.0.0
77 */
78 new GDPR();
79