-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathimage-crate.php
31 lines (29 loc) · 1.05 KB
/
image-crate.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
30
31
<?php
/**
* Plugin Name: Image Crate
* Plugin URI: https://github.com/WordPress-Phoenix/wordpress-image-crate
* Description: Add image providers to the WordPress media modal.
* Author: justintucker
* Version: 2.0.0
* Author URI: http://github.com/justintucker
* License: GPL V2
* Text Domain: image-crate
*
* GitHub Plugin URI: https://github.com/WordPress-Phoenix/wordpress-image-crate
* GitHub Branch: master
*
* @package WP_Image_Crate
* @category plugin
* @author justintucker
* @internal Plugin derived from https://github.com/WordPress-Phoenix/abstract-plugin-base
*/
//avoid direct calls to this file, because now WP core and framework has been used
if ( ! function_exists( 'add_filter' ) ) {
header( 'Status: 403 Forbidden' );
header( 'HTTP/1.1 403 Forbidden' );
exit();
}
// Create plugin instance on plugins_loaded action to maximize flexibility of wp hooks and filters system.
require_once __DIR__ . '/vendor/autoload.php';
require_once __DIR__ . '/app/class-image-crate.php';
add_action( 'plugins_loaded', array('ImageCrate\\Init', 'run') );