# wp-ultimate-post-grid/3.4.0/includes/class-wpupg-activator.php

WP Ultimate Post Grid, version 3.4.0. 34 lines.

- Page: https://pluginprobe.com/plugins/wp-ultimate-post-grid/3.4.0/code/includes/class-wpupg-activator.php
- Raw: https://pluginprobe.com/plugins/wp-ultimate-post-grid/3.4.0/raw/includes/class-wpupg-activator.php
- Modified: 2020-01-24T07:47:12+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/wp-ultimate-post-grid/3.4.0/code/includes/class-wpupg-activator.php#L10-L20`.

```php
<?php
/**
 * Fired during plugin activation.
 *
 * @link       https://bootstrapped.ventures
 * @since      3.0.0
 *
 * @package    WP_Ultimate_Post_Grid
 * @subpackage WP_Ultimate_Post_Grid/includes
 */

/**
 * Fired during plugin activation.
 *
 * This class defines all code necessary to run during the plugin's activation.
 *
 * @since      3.0.0
 * @package    WP_Ultimate_Post_Grid
 * @subpackage WP_Ultimate_Post_Grid/includes
 * @author     Brecht Vandersmissen <brecht@bootstrapped.ventures>
 */
class WPUPG_Activator {

	/**
	 * Execute this on activation of the plugin.
	 *
	 * @since    3.0.0
	 */
	public static function activate() {
		add_option( 'wpupg_activated', true );
		update_option( 'wpupg_flush', '1' );
	}
}

```
