PluginProbe
Push Notifications for WP – Self Hosted Web Push Notifications / 1.0
Push Notifications for WP – Self Hosted Web Push Notifications v1.0
1.52 1.51 trunk 1.0 1.1 1.10 1.11 1.12 1.12.1 1.13 1.14 1.15 1.16 1.17 1.18 1.19 1.2 1.20 1.21 1.22 1.23 1.24 1.25 1.25.1 1.26 All 58 releases
push-notification / push-notification.php

push-notification.php in Push Notifications for WP – Self Hosted Web Push Notifications 1.0, at push-notification.php

32 lines 1.3 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 Plugin Name: Push Notification
4 Plugin URI: https://wordpress.org/plugins/push-notification/
5 Description: Push Notification allow admin to automatically notify your audience when you have published new content on your site or custom notices
6 Author: Magazine3
7 Version: 1.0
8 Author URI: http://pushnotifications.io/
9 Text Domain: push-notification
10 Domain Path: /languages
11 License: GPL2+
12 */
13
14 // Exit if accessed directly.
15 if ( ! defined( 'ABSPATH' ) ) exit;
16
17 define('PUSH_NOTIFICATION_PLUGIN_FILE', __FILE__ );
18 define('PUSH_NOTIFICATION_PLUGIN_DIR', plugin_dir_path( __FILE__ ));
19 define('PUSH_NOTIFICATION_PLUGIN_URL', plugin_dir_url( __FILE__ ));
20 define('PUSH_NOTIFICATION_PLUGIN_VERSION', '1.0');
21 define('PUSH_NOTIFICATION_PLUGIN_BASENAME', plugin_basename(__FILE__));
22
23 require_once PUSH_NOTIFICATION_PLUGIN_DIR."inc/admin/admin.php";
24 require_once PUSH_NOTIFICATION_PLUGIN_DIR."inc/frontend/pn-frontend.php";
25
26 add_filter( 'plugin_action_links_' . PUSH_NOTIFICATION_PLUGIN_FILE,'push_notification_add_action_links', 10, 1);
27
28 function push_notification_add_action_links($links){
29 //print_r($links);die;
30 $mylinks = array('<a href="' . esc_url_raw(admin_url( 'admin.php?page=push-notification' )) . '">'.esc_html__( 'Settings', 'push-notification' ).'</a>');
31 return array_merge( $links, $mylinks );
32 }