HEX
Server: Apache
System: Linux sg2plmcpnl492417.prod.sin2.secureserver.net 4.18.0-553.58.1.lve.el8.x86_64 #1 SMP Fri Jul 4 12:07:06 UTC 2025 x86_64
User: nyiet8349bzl (9207396)
PHP: 8.1.34
Disabled: NONE
Upload Files
File: //proc/thread-self/cwd/wp-content/plugins/coblocks/includes/admin/class-coblocks-install.php
<?php
/**
 * Run on plugin install.
 *
 * @package CoBlocks
 */

// Exit if accessed directly.
if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

/**
 * CoBlocks_Install Class
 */
class CoBlocks_Install {

	/**
	 * Constructor
	 */
	public function __construct() {
		register_activation_hook( COBLOCKS_PLUGIN_FILE, array( $this, 'register_defaults' ) );
	}

	/**
	 * Register plugin defaults.
	 */
	public function register_defaults() {
		if ( is_admin() ) {
			if ( ! get_option( 'coblocks_date_installed' ) ) {
				add_option( 'coblocks_date_installed', gmdate( 'Y-m-d h:i:s' ) );
			}
		}
	}
}

return new CoBlocks_Install();