-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathlock-your-updates.php
executable file
·46 lines (39 loc) · 1.7 KB
/
lock-your-updates.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
42
43
44
45
46
<?php
/**
* @package Lock_Your_Updates
* @author Rachel Carden <[email protected]>
* @license GPL-2.0+
* @link http://wpdreamer.com
* @copyright 2014 Rachel Carden
*
* @wordpress-plugin
* Plugin Name: Lock Your Updates Plugins/Themes Manager
* Plugin URI: http://wpdreamer.com/plugins/lock-your-updates/
* Description: Allows you to lock your plugins and themes from being updated and keep notes on why they're being locked.
* Version: 1.0
* Author: Rachel Carden
* Author URI: http://wpdreamer.com
* Text Domain: lock-your-updates
* License: GPL-2.0+
* License URI: http://www.gnu.org/licenses/gpl-2.0.txt
* Domain Path: /languages
* GitHub Plugin URI: https://github.com/bamadesigner/lock-your-updates
* WordPress-Plugin-Boilerplate: v2.6.1
*/
// If this file is called directly, abort.
if ( ! defined( 'WPINC' ) ) {
die;
}
/*----------------------------------------------------------------------------*
* Public-Facing Functionality
*----------------------------------------------------------------------------*/
require_once( plugin_dir_path( __FILE__ ) . 'public/class-lock-your-updates.php' );
// Will load instance of the plugin.
add_action( 'plugins_loaded', array( 'Lock_Your_Updates', 'get_instance' ) );
/*----------------------------------------------------------------------------*
* Dashboard and Administrative Functionality
*----------------------------------------------------------------------------*/
if ( is_admin() ) {
require_once( plugin_dir_path( __FILE__ ) . 'admin/class-lock-your-updates-admin.php' );
add_action( 'plugins_loaded', array( 'Lock_Your_Updates_Admin', 'get_instance' ) );
}