forked from OneSignal/OneSignal-WordPress-Plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathonesignal.php
More file actions
27 lines (22 loc) · 919 Bytes
/
onesignal.php
File metadata and controls
27 lines (22 loc) · 919 Bytes
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
<?php
/**
* Plugin Name: OneSignal Push Notifications
* Plugin URI: https://onesignal.com/
* Description: Free web push notifications.
* Version: 1.12.5
* Author: OneSignal
* Author URI: https://onesignal.com
* License: MIT
*/
define( 'ONESIGNAL_PLUGIN_URL', plugin_dir_url( __FILE__ ) );
require_once( plugin_dir_path( __FILE__ ) . 'onesignal-utils.php' );
require_once( plugin_dir_path( __FILE__ ) . 'onesignal-admin.php' );
require_once( plugin_dir_path( __FILE__ ) . 'onesignal-public.php' );
require_once( plugin_dir_path( __FILE__ ) . 'onesignal-settings.php' );
require_once( plugin_dir_path( __FILE__ ) . 'onesignal-widget.php' );
if (file_exists(plugin_dir_path( __FILE__ ) . 'onesignal-extra.php')) {
require_once( plugin_dir_path( __FILE__ ) . 'onesignal-extra.php' );
}
add_action( 'init', array( 'OneSignal_Admin', 'init' ) );
add_action( 'init', array( 'OneSignal_Public', 'init' ) );
?>