PluginProbe
OPcache Manager / 3.5.0
OPcache Manager v3.5.0
trunk 1.0.0 1.0.1 1.0.2 1.0.3 1.1.0 1.2.0 1.3.0 1.3.1 1.3.2 2.0.0 2.1.0 2.10.0 2.11.0 2.12.0 2.13.0 2.13.1 2.14.0 2.2.0 2.3.0 2.3.1 2.3.2 2.4.0 2.5.0 2.6.0 All 36 releases
opcache-manager / opcache-manager.php

opcache-manager.php in OPcache Manager 3.5.0, at opcache-manager.php

81 lines 2.1 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: OPcache Manager
11 * Plugin URI: https://perfops.one/opcache-manager
12 * Description: OPcache statistics and management right in the WordPress admin dashboard.
13 * Version: 3.5.0
14 * Requires at least: 6.4
15 * Requires PHP: 8.2
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: opcache-manager
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 opcm_activate() {
45 OPcacheManager\Plugin\Activator::activate();
46 }
47
48 /**
49 * The code that runs during plugin deactivation.
50 *
51 * @since 1.0.0
52 */
53 function opcm_deactivate() {
54 OPcacheManager\Plugin\Deactivator::deactivate();
55 }
56
57 /**
58 * The code that runs during plugin uninstallation.
59 *
60 * @since 1.0.0
61 */
62 function opcm_uninstall() {
63 OPcacheManager\Plugin\Uninstaller::uninstall();
64 }
65
66 /**
67 * Begins execution of the plugin.
68 *
69 * @since 1.0.0
70 */
71 function opcm_run() {
72 \DecaLog\Engine::initPlugin( OPCM_SLUG, OPCM_PRODUCT_NAME, OPCM_VERSION, \OPcacheManager\Plugin\Core::get_base64_logo() );
73 $plugin = new OPcacheManager\Plugin\Core();
74 $plugin->run();
75 }
76
77 register_activation_hook( __FILE__, 'opcm_activate' );
78 register_deactivation_hook( __FILE__, 'opcm_deactivate' );
79 register_uninstall_hook( __FILE__, 'opcm_uninstall' );
80 opcm_run();
81