| 1 |
<?php |
| 2 |
|
| 3 |
/** |
| 4 |
* Fired during plugin activation |
| 5 |
* |
| 6 |
* @link http://wpstream.net |
| 7 |
* @since 3.0.1 |
| 8 |
* |
| 9 |
* @package Wpstream |
| 10 |
* @subpackage Wpstream/includes |
| 11 |
*/ |
| 12 |
|
| 13 |
/** |
| 14 |
* Fired during plugin activation. |
| 15 |
* |
| 16 |
* This class defines all code necessary to run during the plugin's activation. |
| 17 |
* |
| 18 |
* @since 3.0.1 |
| 19 |
* @package Wpstream |
| 20 |
* @subpackage Wpstream/includes |
| 21 |
* @author wpstream <office@wpstream.net> |
| 22 |
*/ |
| 23 |
class Wpstream_Activator { |
| 24 |
|
| 25 |
/** |
| 26 |
* Short Description. (use period) |
| 27 |
* |
| 28 |
* Long Description. |
| 29 |
* |
| 30 |
* @since 3.0.1 |
| 31 |
*/ |
| 32 |
public static function activate() { |
| 33 |
|
| 34 |
require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wpstream_product.php'; |
| 35 |
$plugin_post_types = new Wpstream_Product(); |
| 36 |
$plugin_post_types->create_custom_post_type(); |
| 37 |
|
| 38 |
flush_rewrite_rules(); |
| 39 |
|
| 40 |
// |
| 41 |
|
| 42 |
} |
| 43 |
|
| 44 |
} |
| 45 |
|