PHP 8.2.31
Preview: Install.php Size: 745 B
//home/nshryvcy/blissfulnepal.com/wp-content/plugins/tlp-team/app/Helpers/Install.php

<?php
/**
 * Activation & Deactivation actions.
 *
 * @package RT/Team
 */

namespace RT\Team\Helpers;

// Do not allow directly accessing this file.
if ( ! defined( 'ABSPATH' ) ) {
	exit( 'This script cannot be accessed directly.' );
}

/**
 * Activation & Deactivation actions.
 */
class Install {
	/**
	 * Activation actions.
	 *
	 * @return void
	 */
	public static function activate() {
		$activation = strtotime( 'now' );

		add_option( 'rtteam_plugin_activation_time', $activation );
		update_option( 'rtteam_activation_redirect', true );

		\flush_rewrite_rules();
	}

	/**
	 * Deactivation actions.
	 *
	 * @return void
	 */
	public static function deactivate() {
		\flush_rewrite_rules();
	}
}

Directory Contents

Dirs: 0 × Files: 5

Name Size Perms Modified Actions
1.79 KB lrw-r--r-- 2026-06-03 14:57:33
Edit Download
76.54 KB lrw-r--r-- 2026-06-03 14:57:33
Edit Download
745 B lrw-r--r-- 2026-06-03 14:57:33
Edit Download
39.12 KB lrw-r--r-- 2026-06-03 14:57:33
Edit Download
5.04 KB lrw-r--r-- 2026-06-03 14:57:33
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).