forked from mlteal/lil-notices
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathlil-notices.php
38 lines (33 loc) · 1.33 KB
/
lil-notices.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
<?php
/**
* Plugin Name: Lil Notices
* Plugin URI: https://github.com/fansided/lil-notices
* Description: Take all the stacking admin notices plugins and themes use and move them into an admin menu dropdown.
* Author: mlteal, andreaself, sethcarstens
* Author URI: https://github.com/orgs/WordPress-Phoenix/teams/developers
* Version: 1.0.7
* License: GPLv2
* Text Domain: liln
*
* GitHub Plugin URI: https://github.com/WordPress-Phoenix/lil-notices
* GitHub Branch: master
*
* @package liln
* @category plugin
*/
define( 'LIL_NOTICES__VERSION', '1.0.7' );
require_once( 'class-lil-notices.php' );
/**
* Build and initialize the plugin
*/
if ( class_exists( 'Lil_Notices' ) ) {
// Installation and un-installation hooks
register_activation_hook( __FILE__, array( 'Lil_Notices', 'activate' ) );
register_deactivation_hook( __FILE__, array( 'Lil_Notices', 'deactivate' ) );
// initialize after all plugins are loaded
add_action( 'plugins_loaded', array( 'Lil_Notices', 'init' ) );
// must load action links before init, as init is too late for network plugin action links
$plugin_name = plugin_basename( __FILE__ );
add_filter( 'plugin_action_links_' . $plugin_name, array( 'Lil_Notices', 'plugin_action_links' ) );
add_filter( 'network_admin_plugin_action_links_' . $plugin_name, array( 'Lil_Notices', 'plugin_action_links' ) );
}