Advertisement
Guest User

email-posts-to-subscribers/email-posts-to-subscribers.php

a guest
Aug 20th, 2019
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.01 KB | None | 0 0
  1. <?php
  2. /*
  3. Plugin Name: Email posts to subscribers
  4. Plugin URI: http://www.gopiplus.com/work/2014/03/28/wordpress-plugin-email-posts-to-subscribers/
  5. Description: The aim of this plugin is One Time Configuration and Life Time Newsletter. This plugin generate a newsletter with the latest available posts in the blog and send to your subscriber. We can easily schedule the newsletter daily, weekly or monthly. 6 default templates available with this plugin also admin can create the templates using visual editor.
  6. Version: 4.8
  7. Author: Gopi Ramasamy
  8. Donate link: http://www.gopiplus.com/work/2014/03/28/wordpress-plugin-email-posts-to-subscribers/
  9. Author URI: http://www.gopiplus.com/work/2014/03/28/wordpress-plugin-email-posts-to-subscribers/
  10. License: GPLv2 or later
  11. License URI: http://www.gnu.org/licenses/gpl-2.0.html
  12. Text Domain: email-posts-to-subscribers
  13. Domain Path: /languages
  14. */
  15.  
  16. /*
  17. Copyright 2019 Email posts to subscribers (www.gopiplus.com)
  18.  
  19. This program is free software; you can redistribute it and/or modify
  20. it under the terms of the GNU General Public License, version 2, as
  21. published by the Free Software Foundation.
  22.  
  23. This program is distributed in the hope that it will be useful,
  24. but WITHOUT ANY WARRANTY; without even the implied warranty of
  25. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  26. GNU General Public License for more details.
  27.  
  28. You should have received a copy of the GNU General Public License
  29. along with this program; if not, write to the Free Software
  30. Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
  31. */
  32.  
  33. if(preg_match('#' . basename(__FILE__) . '#', $_SERVER['PHP_SELF'])) { die('You are not allowed to call this page directly.'); }
  34.  
  35. if (!session_id()) { session_start(); }
  36. require_once(dirname(__FILE__).DIRECTORY_SEPARATOR.'base'.DIRECTORY_SEPARATOR.'defined.php');
  37. require_once(dirname(__FILE__).DIRECTORY_SEPARATOR.'classes'.DIRECTORY_SEPARATOR.'stater.php');
  38. add_action('admin_menu', array( 'elp_cls_registerhook', 'elp_adminmenu' ));
  39. register_activation_hook(ELP_FILE, array( 'elp_cls_registerhook', 'elp_activation' ));
  40. register_deactivation_hook(ELP_FILE, array( 'elp_cls_registerhook', 'elp_deactivation' ));
  41. add_action( 'widgets_init', array( 'elp_cls_registerhook', 'elp_widget_loading' ));
  42. add_shortcode( 'email-posts-subscribers', 'elp_shortcode' );
  43. require_once(dirname(__FILE__).DIRECTORY_SEPARATOR.'classes'.DIRECTORY_SEPARATOR.'directly.php');
  44.  
  45. add_action( 'admin_enqueue_scripts', array( 'elp_cls_registerhook', 'elp_load_scripts' ) );
  46.  
  47. function elp_textdomain()
  48. {
  49. load_plugin_textdomain( 'email-posts-to-subscribers' , false, dirname( plugin_basename( __FILE__ ) ) . '/languages/' );
  50. }
  51.  
  52. add_action( 'user_register', 'elp_sync_registereduser');
  53.  
  54. add_action( 'transition_post_status', array( 'elp_cls_dbquerynote', 'elp_prepare_notification' ), 10, 3 );
  55. add_action('plugins_loaded', 'elp_textdomain');
  56.  
  57. register_activation_hook(__FILE__, 'elp_cron_activation');
  58. register_deactivation_hook(__FILE__, 'elp_cron_deactivation');
  59.  
  60. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement