PluginProbe
Additional Terms Lite for WooCommerce / trunk
Additional Terms Lite for WooCommerce vtrunk
1.7.3 1.7.2.1 trunk 1.0.1 1.0.2 1.1.0 1.2.0 1.2.1 1.2.2 1.3.0 1.3.1 1.3.2 1.3.3 1.3.4 1.3.5 1.3.6 1.4.0 1.4.1 1.5.0 1.5.1 1.5.2 1.6.0 1.6.1 1.6.2 1.6.3 All 35 releases
woo-additional-terms / src / Installer.php

Installer.php in Additional Terms Lite for WooCommerce trunk, at src/Installer.php

44 lines 660 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * The plugin installer class.
4 *
5 * @since 1.0.0
6 *
7 * @package woo-additional-terms
8 */
9
10 namespace Woo_Additional_Terms;
11
12 use Woo_Additional_Terms\Enhancements;
13
14 /**
15 * The plugin installer class.
16 */
17 class Installer {
18
19 /**
20 * Activate the plugin.
21 *
22 * @since 1.0.0
23 *
24 * @return void
25 */
26 public static function activate() {
27
28 // Add the activation timestamp, if not already added.
29 woo_additional_terms()->service( 'options' )->add_usage_timestamp();
30 }
31
32 /**
33 * Deactivate the plugin.
34 *
35 * @since 1.0.0
36 *
37 * @return void
38 */
39 public static function deactivate() {
40
41 delete_transient( Enhancements\Rate::TRANSIENT_NAME );
42 }
43 }
44