# button-generation/2.3.2/includes/plugin-activation.php

Button Generator – Easily Create Custom Buttons with Icons and Analytics, version 2.3.2. 31 lines.

- Page: https://pluginprobe.com/plugins/button-generation/2.3.2/code/includes/plugin-activation.php
- Raw: https://pluginprobe.com/plugins/button-generation/2.3.2/raw/includes/plugin-activation.php
- Modified: 2021-12-06T15:58:54+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/button-generation/2.3.2/code/includes/plugin-activation.php#L10-L20`.

```php
<?php
/**
 * Activation function
 *
 * @package     Wow_Plugin
 * @subpackage  Includes/Activation
 * @author      Wow-Company <support@wow-company.com>
 * @copyright   2019 Wow-Company
 * @license     GNU Public License
 * @version     1.0

 */

if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

global $wpdb;
require_once( ABSPATH . 'wp-admin/includes/upgrade.php' );
// Create the database for plugin
$table = $wpdb->prefix . 'wow_' . self::PREF;
$sql   = "CREATE TABLE " . $table . " (
	id mediumint(9) NOT NULL AUTO_INCREMENT,
	title VARCHAR(200) NOT NULL,
	param TEXT,
	UNIQUE KEY id (id)
) DEFAULT CHARSET=utf8;";
dbDelta( $sql );

update_option( 'wow_button_data', '2.0' );
deactivate_plugins( 'button-generator-pro/button-generator-pro.php' );
```
