-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathwp-intervention.php
30 lines (25 loc) · 1005 Bytes
/
wp-intervention.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<?php
/**
* Plugin Name: WP Intervention Image Manipulation
* Version: 1.0
* Description: A fully featured, on demand image manipulation tool for WordPress powered by the <a href="http://image.intervention.io/">Intervention Library</a> (by Oliver Vogel).
* Author: David Smith
* Author URI: https://www.aheadcreative.com
* Plugin URI: https://github.com/getdave/wp-intervention/
* Text Domain: wp-intervention
* Domain Path: /languages
* @package WP Intervention
*/
// If this file is called directly, abort.
if ( ! defined( 'WPINC' ) ) {
die;
}
// Composer Autoloader
// requires all necessary Plugin files via "files" map
require_once __DIR__ . '/vendor/autoload.php';
// Setup hooks
register_activation_hook(__FILE__, array( 'WP_Intervention', 'activated' ) );
register_deactivation_hook( __FILE__, array( 'WP_Intervention', 'deactivated' ) );
// Boot Plugin
$wp_intervention_plugin = new WP_Intervention(__FILE__);
add_action( 'wp_loaded', array( $wp_intervention_plugin, 'load' ) );