Files
Testing/blog/wp-content/plugins/secureprivacy/secureprivacy.php
sean 0e8a8b3028
Some checks are pending
deploy-testing / deploy (push) Waiting to run
Initial testing snapshot
2026-11-17 16:15:01 -05:00

83 lines
2.5 KiB
PHP

<?php
/**
* The plugin bootstrap file
*
* This file is read by WordPress to generate the plugin information in the plugin
* admin area. This file also includes all of the dependencies used by the plugin,
* registers the activation and deactivation functions, and defines a function
* that starts the plugin.
*
* @link http://secureprivacy.ai/
* @since 1.4.1
* @package Secureprivacy
*
* @wordpress-plugin
* Plugin Name: Secure Privacy
* Plugin URI: http://secureprivacy.ai/
* Description: Make websites GDPR compliant with Secure Privacy.
* Version: 1.4.1
* Author: Secure Privacy
* Author URI: http://secureprivacy.ai/
* License: GPL-2.0+
* License URI: http://www.gnu.org/licenses/gpl-2.0.txt
* Text Domain: secureprivacy
* Domain Path: /languages
*/
// If this file is called directly, abort.
if ( ! defined( 'WPINC' ) ) {
die;
}
/**
* The code that runs during plugin activation.
* This action is documented in includes/class-secureprivacy-activator.php
*/
function activate_secureprivacy() {
require_once plugin_dir_path( __FILE__ ) . 'includes/class-secureprivacy-activator.php';
Secureprivacy_Activator::activate();
}
/**
* The code that runs during plugin deactivation.
* This action is documented in includes/class-secureprivacy-deactivator.php
*/
function deactivate_secureprivacy() {
require_once plugin_dir_path( __FILE__ ) . 'includes/class-secureprivacy-deactivator.php';
Secureprivacy_Deactivator::deactivate();
}
register_activation_hook( __FILE__, 'activate_secureprivacy' );
register_deactivation_hook( __FILE__, 'deactivate_secureprivacy' );
/**
* The core plugin class that is used to define internationalization,
* admin-specific hooks, and public-facing site hooks.
*/
require plugin_dir_path( __FILE__ ) . 'includes/class-secureprivacy.php';
require 'plugin-update-checker/plugin-update-checker.php';
$myUpdateChecker = Puc_v4_Factory::buildUpdateChecker(
'http://app.secureprivacy.ai/secureprivacy-plugin/secureprivacy/plugin-update-checker/examples/plugin.json',
__FILE__,
'secureprivacy'
);
/**
* Begins execution of the plugin.
*
* Since everything within the plugin is registered via hooks,
* then kicking off the plugin from this point in the file does
* not affect the page life cycle.
*
* @since 1.0.0
*/
function run_secureprivacy() {
$plugin = new Secureprivacy();
$plugin->run();
}
run_secureprivacy();