Plugin Directory

source: simple-https/trunk/simple-https.php

Last change on this file was 3379144, checked in by neoslab, 3 months ago

Update trunk (sync) for version 2.2.7

File size: 2.4 KB
Line 
1<?php
2/**
3 * The plugin bootstrap file
4 *
5 * This file is read by WordPress to generate the plugin information in the plugin
6 * admin area. This file also includes all of the dependencies used by the plugin,
7 * registers the activation and deactivation functions, and defines a function
8 * that starts the plugin.
9 *
10 * @link https://neoslab.com
11 * @since 1.0.0
12 * @package Simple_HTTPS
13 *
14 * @wordpress-plugin
15 * Plugin Name: Simple HTTPS
16 * Plugin URI: https://wordpress.org/plugins/simple-https/
17 * Description: Correct your SSL/HTTPS issue within few clicks and enable HTTP Strict Transport Security for your website.
18 * Version: 2.2.7
19 * Author: NeosLab
20 * Author URI: https://neoslab.com
21 * License: GPL-2.0+
22 * License URI: http://www.gnu.org/licenses/gpl-2.0.txt
23 * Text Domain: simple-https
24 * Domain Path: /languages
25*/
26
27/**
28 * If this file is called directly, then abort
29*/
30if(!defined('WPINC'))
31{
32        die;
33}
34
35/**
36 * Currently plugin version
37 * Start at version 1.0.0 and use SemVer - https://semver.org
38 * Rename this for your plugin and update it as you release new versions
39*/
40define('SIMPLE_HTTPS_VERSION', '2.2.7');
41
42/**
43 * The code that runs during plugin activation
44 * This action is documented in includes/class-simple-https-activator.php
45*/
46function activate_simple_https()
47{
48        require_once plugin_dir_path(__FILE__).'includes/class-simple-https-activator.php';
49        Simple_HTTPS_Activator::activate();
50}
51
52/**
53 * The code that runs during plugin deactivation
54 * This action is documented in includes/class-simple-https-deactivator.php
55*/
56function deactivate_simple_https()
57{
58        require_once plugin_dir_path(__FILE__).'includes/class-simple-https-deactivator.php';
59        Simple_HTTPS_Deactivator::deactivate();
60}
61
62/**
63 * Activation/deactivation hook
64*/
65register_activation_hook(__FILE__, 'activate_simple_https');
66register_deactivation_hook(__FILE__, 'deactivate_simple_https');
67
68/**
69 * The core plugin class that is used to define internationalization
70 * admin-specific hooks, and public-facing site hooks
71*/
72require plugin_dir_path(__FILE__).'includes/class-simple-https-core.php';
73
74/**
75 * Begins execution of the plugin
76 * Since everything within the plugin is registered via hooks,
77 * then kicking off the plugin from this point in the file does
78 * not affect the page life cycle
79 * @since 1.0.0
80*/
81function run_simple_https()
82{
83        $plugin = new Simple_HTTPS();
84        $plugin->run();
85}
86
87/**
88 * Run plugin
89*/
90run_simple_https();
91
92?>
Note: See TracBrowser for help on using the repository browser.