PluginProbe
YayMail – WooCommerce Email Customizer / 2.1.5
YayMail – WooCommerce Email Customizer v2.1.5
4.4.6 4.4.5 4.4.4 4.4.3 4.4.2 4.4.1 trunk 1.9.6 2.1.4 2.1.5 3.2.2 3.2.6 3.2.7.1 3.2.8.1 3.2.9 3.3 3.3.1 3.3.4 3.3.5 3.3.6 3.3.7 3.3.8 3.3.9 3.4 3.4.1 All 57 releases
yaymail / includes / Plugin.php

Plugin.php in YayMail – WooCommerce Email Customizer 2.1.5, at includes/Plugin.php

41 lines 672 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 namespace YayMail;
3
4 use YayMail\Page\Source\CustomPostType;
5
6 defined( 'ABSPATH' ) || exit;
7 /**
8 * Plugin activate/deactivate logic
9 */
10 class Plugin {
11
12 protected static $instance = null;
13
14 public static function getInstance() {
15 if ( null == self::$instance ) {
16 self::$instance = new self();
17 }
18
19 return self::$instance;
20 }
21
22 /**
23 *
24 * Plugin activated hook
25 */
26 public static function activate() {
27 Helper\ActivePlugin::getInstance();
28 }
29
30 /**
31 *
32 * Plugin deactivate hook
33 */
34 public static function deactivate() {
35 // delete all General
36 // delete_option("yaymail_settings");
37 // delete all template
38 // CustomPostType::deleteAllTemplate();
39 }
40 }
41