# wp-coder/1.1/include/activator.php

WP Coder – Insert &amp; Manage Code Snippets, version 1.1. 12 lines.

- Page: https://pluginprobe.com/plugins/wp-coder/1.1/code/include/activator.php
- Raw: https://pluginprobe.com/plugins/wp-coder/1.1/raw/include/activator.php
- Modified: 2018-11-08T15:54:16+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-coder/1.1/code/include/activator.php#L10-L20`.

```php
<?php if ( ! defined( 'ABSPATH' ) ) exit; 
	global $wpdb;
	require_once(ABSPATH . 'wp-admin/includes/upgrade.php');	
	$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);

```
