PluginProbe
Button Generator – Easily Create Custom Buttons with Icons and Analytics / 2.0
Button Generator – Easily Create Custom Buttons with Icons and Analytics v2.0
trunk 1.1.1 2.0 2.1 2.2 2.3.2 2.3.3 2.3.4 2.3.5 2.3.6 2.3.7 2.3.8 2.3.9 3.0 3.0.1 3.0.2 3.0.3 3.1 3.1.1 3.1.2 3.1.3 3.2 3.2.1 3.2.2 3.2.3 All 28 releases
button-generation / includes / plugin-activation.php

plugin-activation.php in Button Generator – Easily Create Custom Buttons with Icons and Analytics 2.0, at includes/plugin-activation.php

31 lines 765 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Activation function
4 *
5 * @package Wow_Plugin
6 * @subpackage Includes/Activation
7 * @author Dmytro Lobov <i@wpbiker.com>
8 * @copyright 2019 Wow-Company
9 * @license GNU Public License
10 * @version 1.0
11
12 */
13
14 if ( ! defined( 'ABSPATH' ) ) {
15 exit;
16 }
17
18 global $wpdb;
19 require_once( ABSPATH . 'wp-admin/includes/upgrade.php' );
20 // Create the database for plugin
21 $table = $wpdb->prefix . 'wow_' . self::PREF;
22 $sql = "CREATE TABLE " . $table . " (
23 id mediumint(9) NOT NULL AUTO_INCREMENT,
24 title VARCHAR(200) NOT NULL,
25 param TEXT,
26 UNIQUE KEY id (id)
27 ) DEFAULT CHARSET=utf8;";
28 dbDelta( $sql );
29
30 update_option( 'wow_button_data', '2.0' );
31 deactivate_plugins( 'button-generator-pro/button-generator-pro.php' );