| 1 |
<?php |
| 2 |
/** |
| 3 |
* WPMUDEV Notices - Notices module for WPMUDEV free plugins. |
| 4 |
* |
| 5 |
* Used by wordpress.org hosted plugins to show email optins, rating notice |
| 6 |
* and giveaway notices. |
| 7 |
* |
| 8 |
* @since 2.0 |
| 9 |
* @author Incsub (Philipp Stracker, Joel James) |
| 10 |
* @package WPMUDEV\Notices |
| 11 |
*/ |
| 12 |
|
| 13 |
if ( ! class_exists( 'WPMUDEV\Notices\Handler' ) ) { |
| 14 |
// Base file. |
| 15 |
if ( ! defined( 'WPMUDEV_NOTICES_FILE' ) ) { |
| 16 |
define( 'WPMUDEV_NOTICES_FILE', __FILE__ ); |
| 17 |
} |
| 18 |
|
| 19 |
// Include main module. |
| 20 |
require_once 'classes/class-handler.php'; |
| 21 |
// Include notices. |
| 22 |
require_once 'classes/notices/class-notice.php'; |
| 23 |
require_once 'classes/notices/class-email.php'; |
| 24 |
require_once 'classes/notices/class-rating.php'; |
| 25 |
require_once 'classes/notices/class-giveaway.php'; |
| 26 |
|
| 27 |
// Initialize notices. |
| 28 |
WPMUDEV\Notices\Handler::instance(); |
| 29 |
} |
| 30 |
|