forked from wp-plugins/alti-watermark
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathalti-watermark.php
41 lines (32 loc) · 1.33 KB
/
alti-watermark.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
32
33
34
35
36
37
38
39
40
41
<?php
/**
* Plugin Name: Watermark
* Plugin URI: http://www.alticreation.com/en/alti-watermark/
* Description: Add a watermark on all your pictures even the one which are already uploaded. You can setup this plugin through the Media category in the side menu.
* Version: 0.3.1
* Author: Alexis Blondin
* Author URI: http://www.alticreation.com
* License: GPL-2.0+
* License URI: http://www.gnu.org/licenses/gpl-2.0.txt
* Text Domain: alti-watermark
* Domain Path: /languages
*/
// If this file is called directly, abort.
if ( ! defined( 'WPINC' ) ) {
die;
}
function activate_alti_watermark() {
require_once plugin_dir_path( __FILE__ ) . 'includes/class-alti-watermark-activator.php';
$activation = new Alti_Watermark_Activator();
$activation->run();
}
function deactivate_alti_watermark() {
require_once plugin_dir_path( __FILE__ ) . 'includes/class-alti-watermark-deactivator.php';
$deactivation = new Alti_Watermark_Deactivator();
$deactivation->run();
}
register_activation_hook( __FILE__, 'activate_alti_watermark' );
register_deactivation_hook( __FILE__, 'deactivate_alti_watermark' );
require plugin_dir_path( __FILE__ ) . 'includes/class-alti-watermark.php';
$plugin = new Alti_Watermark();
$plugin->run();