| 1 |
<?php |
| 2 |
/** |
| 3 |
* Plugin Name: Protected Video |
| 4 |
* Plugin URI: https://github.com/AlecRust/protected-video |
| 5 |
* Description: YouTube/Vimeo player that prevents easy sharing of the video. |
| 6 |
* Version: 2.0.4 |
| 7 |
* Author: Alec Rust |
| 8 |
* Author URI: https://www.alecrust.com/ |
| 9 |
* Requires PHP: 7.2 |
| 10 |
* License: GPL-2.0-or-later |
| 11 |
* License URI: https://www.gnu.org/licenses/gpl-2.0.html |
| 12 |
* Text Domain: protected-video |
| 13 |
* |
| 14 |
* @package Protected_Video |
| 15 |
* @author Alec Rust |
| 16 |
* @link https://github.com/AlecRust/protected-video |
| 17 |
*/ |
| 18 |
|
| 19 |
// Abort if this file is called directly. |
| 20 |
if ( ! defined( 'WPINC' ) ) { |
| 21 |
die(); |
| 22 |
} |
| 23 |
|
| 24 |
/** |
| 25 |
* Plugin version. |
| 26 |
*/ |
| 27 |
define( 'PROTECTED_VIDEO_VERSION', '2.0.4' ); |
| 28 |
|
| 29 |
/** |
| 30 |
* Load core plugin class defining all hooks. |
| 31 |
*/ |
| 32 |
require_once plugin_dir_path( __FILE__ ) . 'includes/class-protected-video.php'; |
| 33 |
|
| 34 |
/** |
| 35 |
* Begin plugin execution. |
| 36 |
* |
| 37 |
* @SuppressWarnings("PHPMD.MissingImport") |
| 38 |
* |
| 39 |
* @return void |
| 40 |
*/ |
| 41 |
function protected_video_init() { |
| 42 |
$plugin = new Protected_Video(); |
| 43 |
$plugin->init(); |
| 44 |
} |
| 45 |
protected_video_init(); |
| 46 |
|