-
Notifications
You must be signed in to change notification settings - Fork 39
/
slack.php
41 lines (37 loc) · 1.3 KB
/
slack.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
/**
* Main plugin's file.
*
* @package WP_Slack
*/
/**
* Plugin Name: Slack
* Plugin URI: http://gedex.web.id/wp-slack/
* Description: This plugin allows you to send notifications to Slack channels when certain events in WordPress occur.
* Version: 0.6.0
* Author: Akeda Bagus
* Author URI: http://gedex.web.id
* Text Domain: slack
* Domain Path: /languages
* License: GPL v2 or later
* Requires at least: 4.3
* Tested up to: 4.7.3
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*/
require_once __DIR__ . '/includes/autoloader.php';
// Register the autoloader.
WP_Slack_Autoloader::register( 'WP_Slack', trailingslashit( plugin_dir_path( __FILE__ ) ) . '/includes/' );
// Runs this plugin after all plugins are loaded.
add_action( 'plugins_loaded', function() {
$GLOBALS['wp_slack'] = new WP_Slack_Plugin();
$GLOBALS['wp_slack']->run( __FILE__ );
});