# yaymail/1.9.6/includes/Plugin.php

YayMail – WooCommerce Email Customizer, version 1.9.6. 41 lines.

- Page: https://pluginprobe.com/plugins/yaymail/1.9.6/code/includes/Plugin.php
- Raw: https://pluginprobe.com/plugins/yaymail/1.9.6/raw/includes/Plugin.php
- Modified: 2021-04-20T03:58:32+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/yaymail/1.9.6/code/includes/Plugin.php#L10-L20`.

```php
<?php
namespace YayMail;

use YayMail\Page\Source\CustomPostType;

defined( 'ABSPATH' ) || exit;
/**
 * Plugin activate/deactivate logic
 */
class Plugin {

	protected static $instance = null;

	public static function getInstance() {
		if ( null == self::$instance ) {
			self::$instance = new self();
		}

		return self::$instance;
	}

	/**
	 *
	 * Plugin activated hook
	 */
	public static function activate() {
		Helper\ActivePlugin::getInstance();
	}

	/**
	 *
	 * Plugin deactivate hook
	 */
	public static function deactivate() {
		// delete all General
		// delete_option("yaymail_settings");
		// delete all template
		// CustomPostType::deleteAllTemplate();
	}
}

```
