PluginProbe
Bubble Menu – Floating Button Menu with Sticky Navigation / 2.2
Bubble Menu – Floating Button Menu with Sticky Navigation v2.2
trunk 1.3 2.0 2.2 2.2.1 3.0 3.0.1 3.0.2 3.0.3 3.0.4 3.0.5 3.1 3.1.1 4.0 4.0.1 4.0.2 4.0.3 4.0.4 4.0.5 4.0.6 4.0.7 4.1 4.1.1
bubble-menu / includes / plugin-activation.php

plugin-activation.php in Bubble Menu – Floating Button Menu with Sticky Navigation 2.2, at includes/plugin-activation.php

33 lines 781 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_' . self::PREF . '_notice_action', 'read' );
31
32 deactivate_plugins( 'bubble-menu-pro/bubble-menu-pro.php' );
33