PluginProbe
Sessions / 3.1.0
Sessions v3.1.0
2.1.0 2.10.0 2.11.0 2.12.0 2.13.0 2.13.1 2.13.2 2.13.3 2.14.0 2.2.0 2.3.0 2.3.1 2.4.0 2.4.1 2.5.0 2.6.0 2.6.1 2.6.2 2.7.0 2.8.0 2.9.0 2.9.1 3.0.0 3.1.0 3.1.1 All 39 releases
sessions / sessions.php

sessions.php in Sessions 3.1.0, at sessions.php

85 lines 2.3 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Main plugin file.
4 *
5 * @package Bootstrap
6 * @author Pierre Lannoy <https://pierre.lannoy.fr/>.
7 * @since 1.0.0
8 *
9 * @wordpress-plugin
10 * Plugin Name: Sessions
11 * Plugin URI: https://perfops.one/sessions
12 * Description: Powerful sessions manager for WordPress with sessions limiter and full analytics reporting capabilities.
13 * Version: 3.1.0
14 * Requires at least: 6.2
15 * Requires PHP: 8.1
16 * Author: Pierre Lannoy / PerfOps One
17 * Author URI: https://perfops.one
18 * License: GPLv3
19 * License URI: https://www.gnu.org/licenses/gpl-3.0.html
20 * Network: true
21 * Text Domain: sessions
22 * Domain Path: /languages
23 */
24
25 // If this file is called directly, abort.
26 if ( ! defined( 'WPINC' ) ) {
27 die;
28 }
29
30 require_once __DIR__ . '/init.php';
31 require_once __DIR__ . '/functions.php';
32 require_once __DIR__ . '/includes/system/class-option.php';
33 require_once __DIR__ . '/includes/system/class-environment.php';
34 require_once __DIR__ . '/autoload.php';
35 require_once __DIR__ . '/includes/libraries/class-libraries.php';
36 require_once __DIR__ . '/includes/libraries/autoload.php';
37 require_once __DIR__ . '/includes/features/class-wpcli.php';
38
39 /**
40 * The code that runs during plugin activation.
41 *
42 * @since 1.0.0
43 */
44 function pose_activate() {
45 POSessions\Plugin\Activator::activate();
46 }
47
48 /**
49 * The code that runs during plugin deactivation.
50 *
51 * @since 1.0.0
52 */
53 function pose_deactivate() {
54 POSessions\Plugin\Deactivator::deactivate();
55 }
56
57 /**
58 * The code that runs during plugin uninstallation.
59 *
60 * @since 1.0.0
61 */
62 function pose_uninstall() {
63 POSessions\Plugin\Uninstaller::uninstall();
64 }
65
66 /**
67 * Begins execution of the plugin.
68 *
69 * @since 1.0.0
70 */
71 function pose_run() {
72 \DecaLog\Engine::initPlugin( POSE_SLUG, POSE_PRODUCT_NAME, POSE_VERSION, \POSessions\Plugin\Core::get_base64_logo() );
73 // It is needed to do these inits here because some plugins make very early die()
74 \POSessions\System\Session::init();
75 \POSessions\Plugin\Feature\Capture::init();
76 \POSessions\Plugin\Feature\Schema::init();
77 $plugin = new POSessions\Plugin\Core();
78 $plugin->run();
79 }
80
81 register_activation_hook( __FILE__, 'pose_activate' );
82 register_deactivation_hook( __FILE__, 'pose_deactivate' );
83 register_uninstall_hook( __FILE__, 'pose_uninstall' );
84 pose_run();
85