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