-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathwp-easy-plugin.php
38 lines (31 loc) · 918 Bytes
/
wp-easy-plugin.php
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
<?php
/**
* Plugin Name: WP Easy Plugin
* Plugin URI: https://github.com/drewbaker/wp-easy-plugin
* Description: A framework for a modern WordPress template, but make it easy.
* Author: Drew Baker
* Author URI: https://github.com/drewbaker
* Text Domain: wp-easy
* Version: 1.0.0
* Year: 2024
*/
require_once __DIR__ . '/includes/class-plugin-base.php';
require_once __DIR__ . '/includes/class-plugin.php';
require_once __DIR__ . '/includes/helpers.php';
/**
* Speedo Core Plugin Instance
*
* @return \WpEasy\Plugin
*/
function wp_easy_get_plugin_instance() {
static $wp_easy_plugin;
if ( is_null( $wp_easy_plugin ) ) {
$wp_easy_plugin = new \WpEasy\Plugin( __FILE__ );
if ( function_exists( 'wp_get_environment_type' ) ) {
$wp_easy_plugin->set_site_environment_type( wp_get_environment_type() );
}
$wp_easy_plugin->init();
}
return $wp_easy_plugin;
}
wp_easy_get_plugin_instance();