-
Notifications
You must be signed in to change notification settings - Fork 25
Expand file tree
/
Copy pathslack-notifications.php
More file actions
58 lines (44 loc) · 1.16 KB
/
slack-notifications.php
File metadata and controls
58 lines (44 loc) · 1.16 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
<?php
/**
* Plugin Name: Slack Notifications
* Plugin URI: https://www.dorzki.co.il
* Description: Add Slack integration to a channel and send desired notifications as a slack bot.
* Version: 1.0.1
* Author: dorzki
* Author URI: https://www.dorzki.co.il
* Text Domain: dorzki-slack
*
*
* @package Slack Notifications
* @since 1.0.0
* @version 1.0.1
* @author Dor Zuberi <me@dorzki.co.il>
* @link https://www.dorzki.co.il
*/
/**
* PLUGIN CONSTACTS
*/
if ( ! defined( PLUGIN_ROOT_URL ) ) {
define( PLUGIN_ROOT_URL, plugin_dir_url( __FILE__ ) );
}
if ( ! defined( PLUGIN_ROOT_DIR ) ) {
define( PLUGIN_ROOT_DIR, dirname( __FILE__ ) );
}
if ( ! defined( PLUGIN_VERSION ) ) {
define( PLUGIN_VERSION, '1.0.0' );
}
/**
* PLUGIN CLASSES
*/
include_once( 'classes/wordpress-notifications.php' );
include_once( 'classes/slack-bot.php' );
include_once( 'classes/wordpress-slack.php' );
/**
* PLUGIN INTIALIZATION
*/
$wpSlack = new wpSlack();
/**
* REGISTER ACTIVATION & DEACTIVATION
*/
register_activation_hook( __FILE__, array( &$wpSlack, 'plugin_activate' ) );
register_deactivation_hook( __FILE__, array( &$wpSlack, 'plugin_deactivate' ) );