| 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 |
} |