embedpress
Last commit date
EmbedPress
9 years ago
assets
9 years ago
freemius
9 years ago
library
9 years ago
autoloader.php
9 years ago
changelog.txt
9 years ago
embedpress.php
9 years ago
freemius.php
9 years ago
includes.php
9 years ago
index.html
9 years ago
providers.php
9 years ago
readme.txt
9 years ago
embedpress.php
42 lines
| 1 | <?php |
| 2 | /** |
| 3 | * EmbedPress plugin bootstrap file. |
| 4 | * |
| 5 | * @link https://pressshack.com/embedpress/ |
| 6 | * @package EmbedPress |
| 7 | * @author PressShack <help@pressshack.com> |
| 8 | * @copyright Copyright (C) 2017 Open Source Training, LLC. All rights reserved. |
| 9 | * @license GPLv2 or later |
| 10 | * @since 1.0.0 |
| 11 | * |
| 12 | * @embedpress |
| 13 | * Plugin Name: EmbedPress |
| 14 | * Plugin URI: https://pressshack.com/embedpress/ |
| 15 | * Version: 1.7.0 |
| 16 | * Description: WordPress supports around 35 embed sources, but EmbedPress adds over 40 more, including Facebook, Google Maps, Google Docs, UStream! Just use the URL! |
| 17 | * Author: PressShack |
| 18 | * Author URI: http://pressshack.com |
| 19 | */ |
| 20 | |
| 21 | use \EmbedPress\Core; |
| 22 | |
| 23 | require_once plugin_dir_path(__FILE__) .'includes.php'; |
| 24 | |
| 25 | (defined('ABSPATH') && defined('EMBEDPRESS_IS_LOADED')) or die("No direct script access allowed."); |
| 26 | |
| 27 | function onPluginActivationCallback() |
| 28 | { |
| 29 | Core::onPluginActivationCallback(); |
| 30 | } |
| 31 | |
| 32 | function onPluginDeactivationCallback() |
| 33 | { |
| 34 | Core::onPluginDeactivationCallback(); |
| 35 | } |
| 36 | |
| 37 | register_activation_hook(__FILE__, 'onPluginActivationCallback'); |
| 38 | register_deactivation_hook(__FILE__, 'onPluginDeactivationCallback'); |
| 39 | |
| 40 | $embedPressPlugin = new Core(); |
| 41 | $embedPressPlugin->initialize(); |
| 42 |