| 1 |
<?php |
| 2 |
/** |
| 3 |
* Plugin Name: Notification Master |
| 4 |
* |
| 5 |
* Description: Enhance user engagement. Trigger notifications for events, support multiple channels like email and Discord, and personalize with dynamic merge tags. Easy setup and customization. |
| 6 |
* |
| 7 |
* Version: 1.7.1 |
| 8 |
* |
| 9 |
* Author: Notification Master |
| 10 |
* |
| 11 |
* Author URI: https://notification-master.com |
| 12 |
* |
| 13 |
* Text Domain: notification-master |
| 14 |
* |
| 15 |
* Domain Path: /languages |
| 16 |
* |
| 17 |
* License: GNU General Public License v3.0 or later |
| 18 |
* |
| 19 |
* @package notification-master |
| 20 |
*/ |
| 21 |
|
| 22 |
// Exit if accessed directly. |
| 23 |
if ( ! defined( 'ABSPATH' ) ) { |
| 24 |
exit; |
| 25 |
} |
| 26 |
|
| 27 |
// Define notification-master constants. |
| 28 |
define( 'NOTIFICATION_MASTER_VERSION', '1.7.1' ); |
| 29 |
define( 'NOTIFICATION_MASTER_FILE', __FILE__ ); |
| 30 |
define( 'NOTIFICATION_MASTER_DIR', plugin_dir_path( __FILE__ ) ); |
| 31 |
define( 'NOTIFICATION_MASTER_URL', plugin_dir_url( __FILE__ ) ); |
| 32 |
define( 'NOTIFICATION_MASTER_BASENAME', plugin_basename( __FILE__ ) ); |
| 33 |
define( 'NOTIFICATION_MASTER_SITE', 'https://notification-master.com' ); |
| 34 |
|
| 35 |
// Action scheduler. |
| 36 |
require_once NOTIFICATION_MASTER_DIR . 'includes/libraries/load.php'; |
| 37 |
|
| 38 |
// autoload. |
| 39 |
require_once NOTIFICATION_MASTER_DIR . 'includes/autoload.php'; |
| 40 |
|
| 41 |
|
| 42 |
Notification_Master\Plugin::get_instance(); |
| 43 |
|
| 44 |
// Load plugin. |
| 45 |
add_action( |
| 46 |
'plugins_loaded', |
| 47 |
function () { |
| 48 |
do_action( 'notification_master_loaded' ); |
| 49 |
} |
| 50 |
); |
| 51 |
|