[ Index ]

MailPress 544

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

title

Body

[close]

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

   1  <?php
   2  if (class_exists('MailPress') && !class_exists('MailPress_write_edit_fromemail'))
   3  {
   4  /*
   5  Plugin Name: MailPress_write_edit_fromemail
   6  Plugin URI: http://blog.mailpress.org/tutorials/add-ons/write_edit_fromemail/
   7  Description: New Mail : make FROM email and name editable (<span style='color:red;'>info !</span> use <span style='color:#D54E21;'>Roles_and_capabilities</span> add-on for fine tuning new capability 'MailPress_write_edit_fromemail')
   8  Version: 5.4.4
   9  */
  10  
  11  class MailPress_write_edit_fromemail
  12  {
  13  	function __construct()
  14      {
  15      // for role & capabilities
  16          add_filter('MailPress_capabilities',         array(__CLASS__, 'capabilities'), 1, 1);
  17      }
  18  
  19  ////  Admin  ////
  20  
  21  // for role & capabilities
  22  	public static function capabilities($capabilities)
  23      {
  24          $capabilities['MailPress_write_edit_fromemail'] = array(    'name'    => __('Edit fromemail', MP_TXTDOM),
  25                                          'group'    => 'mails'
  26          );
  27          return $capabilities;
  28      }
  29  }
  30  new MailPress_write_edit_fromemail();
  31  }


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