Easy Forms for MailChimp - Version 5.3.1

Version Description

  • January 13th, 2014 =

  • Enhancement: Added new filter to allow users to change which role has access to the MailChimp administration pages ( yks-mailchimp-user-role ) ( check readme for example )

Download this release

Release Info

Developer eherman24
Plugin Icon 128x128 Easy Forms for MailChimp
Version 5.3.1
Comparing to
See all releases

Code changes from version 5.3 to 5.3.1

classes/class.yksemeBase.php CHANGED
@@ -1309,16 +1309,16 @@ if(!class_exists("yksemeBase")) {
1309
  ****************************************************************************************************/
1310
  public function addAdministrationMenu() {
1311
  // Top Level Menu
1312
- add_menu_page( __('MailChimp Forms','yikes-inc-easy-mailchimp-extender'), 'MailChimp Forms', 'manage_options', 'yks-mailchimp-form', array(&$this, 'generatePageOptions'), 'dashicons-welcome-write-blog', 400);
1313
  // Sub Items
1314
- add_submenu_page('yks-mailchimp-form', __('MailChimp Forms','yikes-inc-easy-mailchimp-extender'), __('MailChimp Settings','yikes-inc-easy-mailchimp-extender'), 'manage_options', 'yks-mailchimp-form', array(&$this, 'generatePageOptions'));
1315
  // if the user has entered a VALID API key
1316
  if ( get_option('api_validation') == 'valid_api_key') {
1317
- add_submenu_page('yks-mailchimp-form', __('My MailChimp','yikes-inc-easy-mailchimp-extender'), __('My MailChimp','yikes-inc-easy-mailchimp-extender'), 'manage_options', 'yks-mailchimp-my-mailchimp', array(&$this, 'generateUserMailChimpPage'));
1318
  }
1319
- add_submenu_page('yks-mailchimp-form', __('Manage List Forms','yikes-inc-easy-mailchimp-extender'), __('Manage List Forms','yikes-inc-easy-mailchimp-extender'), 'manage_options', 'yks-mailchimp-form-lists', array(&$this, 'generatePageLists'));
1320
- add_submenu_page('yks-mailchimp-form', __('About YIKES, Inc.','yikes-inc-easy-mailchimp-extender'), __('About YIKES, Inc.','yikes-inc-easy-mailchimp-extender'), 'manage_options', 'yks-mailchimp-about-yikes', array(&$this, 'generatePageAboutYikes'));
1321
- add_submenu_page('options.php', __('Welcome','yikes-inc-easy-mailchimp-extender'), __('Welcome','yikes-inc-easy-mailchimp-extender'), 'manage_options', 'yks-mailchimp-welcome', array(&$this, 'generateWelcomePage'));
1322
  } // end addAdministrationMenu();
1323
 
1324
 
1309
  ****************************************************************************************************/
1310
  public function addAdministrationMenu() {
1311
  // Top Level Menu
1312
+ add_menu_page( __('MailChimp Forms','yikes-inc-easy-mailchimp-extender'), 'MailChimp Forms', apply_filters( 'yks_mailchimp_user_role' , 'manage_options' ), 'yks-mailchimp-form', array(&$this, 'generatePageOptions'), 'dashicons-welcome-write-blog', 400);
1313
  // Sub Items
1314
+ add_submenu_page('yks-mailchimp-form', __('MailChimp Forms','yikes-inc-easy-mailchimp-extender'), __('MailChimp Settings','yikes-inc-easy-mailchimp-extender'), apply_filters( 'yks_mailchimp_user_role' , 'manage_options' ), 'yks-mailchimp-form', array(&$this, 'generatePageOptions'));
1315
  // if the user has entered a VALID API key
1316
  if ( get_option('api_validation') == 'valid_api_key') {
1317
+ add_submenu_page('yks-mailchimp-form', __('My MailChimp','yikes-inc-easy-mailchimp-extender'), __('My MailChimp','yikes-inc-easy-mailchimp-extender'), apply_filters( 'yks_mailchimp_user_role' , 'manage_options' ), 'yks-mailchimp-my-mailchimp', array(&$this, 'generateUserMailChimpPage'));
1318
  }
1319
+ add_submenu_page('yks-mailchimp-form', __('Manage List Forms','yikes-inc-easy-mailchimp-extender'), __('Manage List Forms','yikes-inc-easy-mailchimp-extender'), apply_filters( 'yks_mailchimp_user_role' , 'manage_options' ), 'yks-mailchimp-form-lists', array(&$this, 'generatePageLists'));
1320
+ add_submenu_page('yks-mailchimp-form', __('About YIKES, Inc.','yikes-inc-easy-mailchimp-extender'), __('About YIKES, Inc.','yikes-inc-easy-mailchimp-extender'), apply_filters( 'yks_mailchimp_user_role' , 'manage_options' ), 'yks-mailchimp-about-yikes', array(&$this, 'generatePageAboutYikes'));
1321
+ add_submenu_page('options.php', __('Welcome','yikes-inc-easy-mailchimp-extender'), __('Welcome','yikes-inc-easy-mailchimp-extender'), apply_filters( 'yks_mailchimp_user_role' , 'manage_options' ), 'yks-mailchimp-welcome', array(&$this, 'generateWelcomePage'));
1322
  } // end addAdministrationMenu();
1323
 
1324
 
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://yikesinc.com
4
  Tags: mailchimp, marketing, email, mailing lists, newsletter, sign up, forms, sign up form
5
  Requires at least: 3.0
6
  Tested up to: 4.1
7
- Stable tag: 5.3
8
  License: GPLv2 or later
9
 
10
  Easy MailChimp Forms allows you to painlessly add MailChimp sign up forms to your WordPress site and track user activity with interactive reports.
@@ -342,6 +342,38 @@ N/A
342
 
343
  **Filters**
344
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
345
  **Filter Name:**
346
  `yikes_mc_get_form_data`
347
 
@@ -763,6 +795,10 @@ These functions should be used in conjunction with the `yikes_mc_get_form_data`
763
 
764
  == Changelog ==
765
 
 
 
 
 
766
  = 5.3 - January 11th, 2014 =
767
 
768
  * Enhancement: Added ability to move the success + error messages above or below the form based on a defined constant ( `display_yikes_mc_form_messages` [options: before/after] )
@@ -1029,6 +1065,9 @@ These functions should be used in conjunction with the `yikes_mc_get_form_data`
1029
 
1030
  == Upgrade Notice ==
1031
 
 
 
 
1032
  = 5.3 - January 11th, 2014 =
1033
  * Enhancement: Added ability to move the success + error messages above or below the form based on a defined constant ( `display_yikes_mc_form_messages` [options: before/after] )
1034
  * Enhancement: Added new settings and the ability to show/hide * = required field , from the top of the forms, via the settings page
4
  Tags: mailchimp, marketing, email, mailing lists, newsletter, sign up, forms, sign up form
5
  Requires at least: 3.0
6
  Tested up to: 4.1
7
+ Stable tag: 5.3.1
8
  License: GPLv2 or later
9
 
10
  Easy MailChimp Forms allows you to painlessly add MailChimp sign up forms to your WordPress site and track user activity with interactive reports.
342
 
343
  **Filters**
344
 
345
+ **Filter Name:**
346
+ `yks_mailchimp_user_role`
347
+
348
+ **Accepted Parameters:**
349
+ `$capability`
350
+
351
+ **Parameter Info:**
352
+
353
+ `$capability = the lowest capability allowed to access the administration pages. defaults to 'manage_options' (admins).`
354
+
355
+ **Description:**
356
+ The following example will allow editors to access the YIKES MailChimp administration pages on the dashboard.
357
+
358
+ **Example:**
359
+ The following example will allow editors to access the YIKES MailChimp administration pages on the dashboard.
360
+ `
361
+ <?php
362
+ /**
363
+ * This example will allow editors to access the YIKES MailChimp administration pages
364
+ * If you would like authors or another user role to be able to access the admin pages, you
365
+ * must set this to the lowest capability allowed. ( check : http://codex.wordpress.org/Roles_and_Capabilities for role capabilities )
366
+ * <em>note: for authors, you would use the 'publish_posts' capability.</em>
367
+ */
368
+ function yikes_mailchimp_allow_editors( $capability ) {
369
+ $capability = 'edit_others_pages';
370
+ return $capability;
371
+ }
372
+ add_filter( 'yks_mailchimp_user_role' , 'yikes_mailchimp_allow_editors' );
373
+ ?>
374
+ `
375
+ <br />
376
+
377
  **Filter Name:**
378
  `yikes_mc_get_form_data`
379
 
795
 
796
  == Changelog ==
797
 
798
+ = 5.3.1 - January 13th, 2014 =
799
+
800
+ * Enhancement: Added new filter to allow users to change which role has access to the MailChimp administration pages ( `yks-mailchimp-user-role` ) ( check readme for example )
801
+
802
  = 5.3 - January 11th, 2014 =
803
 
804
  * Enhancement: Added ability to move the success + error messages above or below the form based on a defined constant ( `display_yikes_mc_form_messages` [options: before/after] )
1065
 
1066
  == Upgrade Notice ==
1067
 
1068
+ = 5.3.1 - January 13th, 2014 =
1069
+ * Enhancement: Added new filter to allow users to change which role has access to the MailChimp administration pages ( `yks-mailchimp-user-role` ) ( check readme for example )
1070
+
1071
  = 5.3 - January 11th, 2014 =
1072
  * Enhancement: Added ability to move the success + error messages above or below the form based on a defined constant ( `display_yikes_mc_form_messages` [options: before/after] )
1073
  * Enhancement: Added new settings and the ability to show/hide * = required field , from the top of the forms, via the settings page
yikes-inc-easy-mailchimp-extender.php CHANGED
@@ -4,7 +4,7 @@
4
  Plugin Name: Easy MailChimp Forms
5
  Plugin URI: http://www.yikesinc.com/services/yikes-inc-easy-mailchimp-extender/
6
  Description: Mailchimp integration in the form of a shortcode, php snippet or widget. Now track account status, campaign stats, view subscribers and so much more!
7
- Version: 5.3
8
  Author: YIKES Inc
9
  Author URI: http://yikesinc.com
10
  License: GPL2
@@ -30,7 +30,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
30
 
31
  /** Configuration **/
32
  if(!defined('YKSEME_DEBUG')) define('YKSEME_DEBUG', false);
33
- if(!defined('YKSEME_VERSION_CURRENT')) define('YKSEME_VERSION_CURRENT', '5.3');
34
  if(!defined('YKSEME_REQ_PHP')) define('YKSEME_REQ_PHP', '5.0');
35
  if(!defined('YKSEME_AUTHOR')) define('YKSEME_AUTHOR', 'YIKES Inc');
36
  if(!defined('YKSEME_SITE')) define('YKSEME_SITE', site_url().'/');
4
  Plugin Name: Easy MailChimp Forms
5
  Plugin URI: http://www.yikesinc.com/services/yikes-inc-easy-mailchimp-extender/
6
  Description: Mailchimp integration in the form of a shortcode, php snippet or widget. Now track account status, campaign stats, view subscribers and so much more!
7
+ Version: 5.3.1
8
  Author: YIKES Inc
9
  Author URI: http://yikesinc.com
10
  License: GPL2
30
 
31
  /** Configuration **/
32
  if(!defined('YKSEME_DEBUG')) define('YKSEME_DEBUG', false);
33
+ if(!defined('YKSEME_VERSION_CURRENT')) define('YKSEME_VERSION_CURRENT', '5.3.1');
34
  if(!defined('YKSEME_REQ_PHP')) define('YKSEME_REQ_PHP', '5.0');
35
  if(!defined('YKSEME_AUTHOR')) define('YKSEME_AUTHOR', 'YIKES Inc');
36
  if(!defined('YKSEME_SITE')) define('YKSEME_SITE', site_url().'/');