-
Notifications
You must be signed in to change notification settings - Fork 1
/
wp-plugin-gulp.php
42 lines (33 loc) · 1 KB
/
wp-plugin-gulp.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
39
40
41
42
<?php
/**
* @link http://www.deepenbajracharya.com.np
* @since 1.0.0
*
* Plugin Name: Basic Boilerplate Plugin using Gulp
* Plugin URI: http://www.deepenbajracharya.com.np
* Description: Basic Boilerplate Template for WordPress plugin Gulp Usage
* Version: 1.0.0
* Author: Deepen Bajracharya
* Author URI: http://www.deepenbajracharya.com.np
* License: GPL-2.0+
* License URI: http://www.gnu.org/licenses/gpl-2.0.txt
*/
if ( ! defined( 'ABSPATH' ) ) {
die("No scripts kiddies !");
}
final class WP_Plugin_Gulp {
public $version = '1.0.0';
public $required_wp_version = '4.5.2';
private static $_instance = null;
/**
* Create only one instance so that it may not Repeat
* @since 2.0.0
*/
public static function instance() {
if ( is_null( self::$_instance ) ) {
self::$_instance = new self();
}
return self::$_instance;
}
}
add_action( 'plugins_loaded', array( 'WP_Plugin_Gulp', 'instance' ) );