| 1 |
<?php |
| 2 |
/** |
| 3 |
* Plugin Name: WpStream |
| 4 |
* Plugin URI: http://wpstream.net |
| 5 |
* Description: WpStream is a WordPress plugin to help you stream & monetize media content. |
| 6 |
* Version: 3.2.0 |
| 7 |
* Author: wpstream |
| 8 |
* Author URI: http://wpstream.net |
| 9 |
* Text Domain: wpstream |
| 10 |
* Domain Path: /languages |
| 11 |
*/ |
| 12 |
|
| 13 |
// If this file is called directly, abort. |
| 14 |
if ( ! defined( 'WPINC' ) ) { |
| 15 |
die; |
| 16 |
} |
| 17 |
define('WPSTREAM_CLUBLINK', 'wpstream.net'); |
| 18 |
define('WPSTREAM_CLUBLINKSSL', 'https'); |
| 19 |
define('WPSTREAM_PLUGIN_URL', plugins_url() ); |
| 20 |
define('WPSTREAM_PLUGIN_DIR_URL', plugin_dir_url(__FILE__) ); |
| 21 |
define('WPSTREAM_PLUGIN_PATH', plugin_dir_path(__FILE__) ); |
| 22 |
define('WPSTREAM_PLUGIN_BASE', plugin_basename(__FILE__) ); |
| 23 |
/** |
| 24 |
* Currently plugin version. |
| 25 |
* Start at version 3.0.1 and use SemVer - https://semver.org |
| 26 |
* Rename this for your plugin and update it as you release new versions. |
| 27 |
*/ |
| 28 |
define( 'WPSTREAM_VERSION', '3.0.1' ); |
| 29 |
|
| 30 |
/** |
| 31 |
* The code that runs during plugin activation. |
| 32 |
* This action is documented in includes/class-wpstream-activator.php |
| 33 |
*/ |
| 34 |
function activate_wpstream() { |
| 35 |
require_once plugin_dir_path( __FILE__ ) . 'includes/class-wpstream-activator.php'; |
| 36 |
Wpstream_Activator::activate(); |
| 37 |
} |
| 38 |
|
| 39 |
/** |
| 40 |
* The code that runs during plugin deactivation. |
| 41 |
* This action is documented in includes/class-wpstream-deactivator.php |
| 42 |
*/ |
| 43 |
function deactivate_wpstream() { |
| 44 |
require_once plugin_dir_path( __FILE__ ) . 'includes/class-wpstream-deactivator.php'; |
| 45 |
Wpstream_Deactivator::deactivate(); |
| 46 |
} |
| 47 |
|
| 48 |
register_activation_hook( __FILE__, 'activate_wpstream' ); |
| 49 |
register_deactivation_hook( __FILE__, 'deactivate_wpstream' ); |
| 50 |
|
| 51 |
/** |
| 52 |
* The core plugin class that is used to define internationalization, |
| 53 |
* admin-specific hooks, and public-facing site hooks. |
| 54 |
*/ |
| 55 |
require plugin_dir_path( __FILE__ ) . 'includes/class-wpstream.php'; |
| 56 |
|
| 57 |
/** |
| 58 |
* Begins execution of the plugin. |
| 59 |
* |
| 60 |
* Since everything within the plugin is registered via hooks, |
| 61 |
* then kicking off the plugin from this point in the file does |
| 62 |
* not affect the page life cycle. |
| 63 |
* |
| 64 |
* @since 3.0.1 |
| 65 |
*/ |
| 66 |
//function run_wpstream() { |
| 67 |
// |
| 68 |
// $plugin = new Wpstream(); |
| 69 |
// $plugin->run(); |
| 70 |
// |
| 71 |
//} |
| 72 |
//run_wpstream(); |
| 73 |
global $wpstream_plugin; |
| 74 |
$wpstream_plugin = new Wpstream(); |
| 75 |
$wpstream_plugin->run(); |