-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathupdate-notification-email-address.php
48 lines (41 loc) · 1.91 KB
/
update-notification-email-address.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
47
48
<?php
/**
* Background Update Notification Email Address
*
* Change the email address update notifications are sent to following an
* automatic background update.
*
* @package Background_Update_Notification_Email_Address
* @author Phil Wylie <phil@iweb.co.uk>
* @license GPL-2.0+
* @link http://wordpress.org/plugins/background-update-notification-email-address/
* @copyright 2014 Interactive Web Solutions Ltd
*
* @wordpress-plugin
* Plugin Name: Background Update Notification Email Address
* Plugin URI: http://wordpress.org/plugins/background-update-notification-email-address/
* Description: Change the email address update notifications are sent to following an automatic background update.
* Version: 1.1.1
* Author: Interactive Web Solutions Ltd
* Author URI: http://www.iwebsolutions.co.uk/
* Text Domain: update-notification-email-address
* License: GPL-2.0+
* License URI: http://www.gnu.org/licenses/gpl-2.0.txt
* Domain Path: /languages
*/
// If this file is called directly, abort.
if ( ! defined( 'WPINC' ) ) {
die;
}
/*----------------------------------------------------------------------------*
* Public-Facing Functionality
*----------------------------------------------------------------------------*/
require_once( plugin_dir_path( __FILE__ ) . 'public/class-update-notification-email-address.php' );
add_action( 'plugins_loaded', array( 'Background_Update_Notification_Email_Address', 'get_instance' ) );
/*----------------------------------------------------------------------------*
* Dashboard and Administrative Functionality
*----------------------------------------------------------------------------*/
if ( is_admin() && ( ! defined( 'DOING_AJAX' ) || ! DOING_AJAX ) ) {
require_once( plugin_dir_path( __FILE__ ) . 'admin/class-update-notification-email-address-admin.php' );
add_action( 'plugins_loaded', array( 'Background_Update_Notification_Email_Address_Admin', 'get_instance' ) );
}