-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathoptimizations-ace-mc.php
More file actions
45 lines (40 loc) · 1.37 KB
/
optimizations-ace-mc.php
File metadata and controls
45 lines (40 loc) · 1.37 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
<?php
/**
* Plugin Name: Optimizations ACE MC
* Plugin URI: https://github.com/EngineScript/optimizations-ace-mc
* Description: A lightweight WordPress optimization plugin with pre-configured performance enhancements for WooCommerce, WP Store Locator, and WordPress admin.
* Version: 1.0.8
* Author: EngineScript
* Author URI: https://github.com/EngineScript
* License: GPL-3.0-or-later
* License URI: https://www.gnu.org/licenses/gpl-3.0.html
* Text Domain: optimizations-ace-mc
* Domain Path: /languages
* Requires at least: 6.6
* Tested up to: 6.9
* Requires PHP: 8.1
*
* @package OptimizationsAceMc
*/
// If this file is called directly, abort.
if ( ! defined( 'WPINC' ) ) {
die;
}
// Define plugin constants.
define( 'OPTIMIZATIONS_ACE_MC_VERSION', '1.0.8' );
define( 'OPTIMIZATIONS_ACE_MC_PLUGIN_FILE', __FILE__ );
define( 'OPTIMIZATIONS_ACE_MC_PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
define( 'OPTIMIZATIONS_ACE_MC_PLUGIN_URL', plugin_dir_url( __FILE__ ) );
// Include the main class.
require_once OPTIMIZATIONS_ACE_MC_PLUGIN_DIR . 'class-optimizations-ace-mc.php';
/**
* Initialize the plugin.
*
* @since 1.0.0
* @return Optimizations_Ace_Mc
*/
function optimizations_ace_mc(): Optimizations_Ace_Mc {
return Optimizations_Ace_Mc::instance();
}
// Start the plugin once all other plugins are loaded.
add_action( 'plugins_loaded', 'optimizations_ace_mc' );