# woo-additional-terms/trunk/src/Installer.php

Additional Terms Lite for WooCommerce, version trunk. 44 lines.

- Page: https://pluginprobe.com/plugins/woo-additional-terms/trunk/code/src/Installer.php
- Raw: https://pluginprobe.com/plugins/woo-additional-terms/trunk/raw/src/Installer.php
- Modified: 2024-04-09T12:06:28+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/woo-additional-terms/trunk/code/src/Installer.php#L10-L20`.

```php
<?php
/**
 * The plugin installer class.
 *
 * @since 1.0.0
 *
 * @package woo-additional-terms
 */

namespace Woo_Additional_Terms;

use Woo_Additional_Terms\Enhancements;

/**
 * The plugin installer class.
 */
class Installer {

	/**
	 * Activate the plugin.
	 *
	 * @since 1.0.0
	 *
	 * @return void
	 */
	public static function activate() {

		// Add the activation timestamp, if not already added.
		woo_additional_terms()->service( 'options' )->add_usage_timestamp();
	}

	/**
	 * Deactivate the plugin.
	 *
	 * @since 1.0.0
	 *
	 * @return void
	 */
	public static function deactivate() {

		delete_transient( Enhancements\Rate::TRANSIENT_NAME );
	}
}

```
