[ Index ]

MailPress 544

[ Index ]     [ Classes ]     [ Functions ]     [ Variables ]     [ Constants ]     [ Statistics ]    

title

Body

[close]

/mp-content/add-ons/ -> MailPress_connection_php_mail.php (source)

   1  <?php
   2  if (class_exists('MailPress') && !class_exists('MailPress_connection_php_mail') )
   3  {
   4  /*
   5  Plugin Name: MailPress_connection_php_mail 
   6  Plugin URI: http://blog.mailpress.org/tutorials/add-ons/connection_php_mail/
   7  Description: Connection : use native php mail
   8  Version: 5.4.4
   9  */
  10  
  11  class MailPress_connection_php_mail
  12  {
  13      const option_name = 'MailPress_connection_phpmail';
  14  
  15  	function __construct()
  16      {
  17          new MP_Connection_php_mail();
  18  
  19  // for wp admin
  20          if (is_admin())
  21          {
  22          // for link on plugin page
  23              add_filter('plugin_action_links',             array(__CLASS__, 'plugin_action_links'), 10, 2 );
  24          }
  25  
  26      }
  27  
  28  ////  ADMIN  ////
  29  ////  ADMIN  ////
  30  ////  ADMIN  ////
  31  ////  ADMIN  ////
  32  
  33  // for link on plugin page
  34  	public static function plugin_action_links($links, $file)
  35      {
  36          return MailPress::plugin_links($links, $file, plugin_basename(__FILE__), 'connection_php_mail');
  37      }
  38  }
  39  new MailPress_connection_php_mail();
  40  }


Generated: Thu Apr 28 18:38:52 2016 Cross-referenced by PHPXref 0.7.1