-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathplugin.php
More file actions
36 lines (31 loc) · 1.11 KB
/
plugin.php
File metadata and controls
36 lines (31 loc) · 1.11 KB
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
32
33
34
35
36
<?php
/**
* Plugin Name: WP Clean Media
* Plugin URI: https://github.com/eflorea/wp-clean-media
* Description: A small WP plugin to clean media files
* Version: 1.0.4
* Author: Eduard Florea
* Author URI: https://florea.com
* Text Domain: wp-clean-media
* Domain Path: /languages
*
* @package WpCleanMedia
*/
// Useful global constants.
define( 'WP_CLEAN_MEDIA_VERSION', '1.0.4' );
define( 'WP_CLEAN_MEDIA_URL', plugin_dir_url( __FILE__ ) );
define( 'WP_CLEAN_MEDIA_PATH', plugin_dir_path( __FILE__ ) );
define( 'WP_CLEAN_MEDIA_INC', WP_CLEAN_MEDIA_PATH . 'includes/' );
// Include files.
require_once WP_CLEAN_MEDIA_INC . 'functions/core.php';
require_once WP_CLEAN_MEDIA_INC . 'functions/scan.php';
// Activation/Deactivation.
register_activation_hook( __FILE__, '\WpCleanMedia\Core\activate' );
register_deactivation_hook( __FILE__, '\WpCleanMedia\Core\deactivate' );
// Bootstrap.
WpCleanMedia\Core\setup();
WpCleanMedia\Scan\setup();
// Require Composer autoloader if it exists.
if ( file_exists( WP_CLEAN_MEDIA_PATH . '/vendor/autoload.php' ) ) {
require_once WP_CLEAN_MEDIA_PATH . 'vendor/autoload.php';
}