Manage Notification E-mails - Version 1.4.0

Version Description

ADDED: Multi-language support

Download this release

Release Info

Developer Virgial
Plugin Icon 128x128 Manage Notification E-mails
Version 1.4.0
Comparing to
See all releases

Code changes from version 1.3.0 to 1.4.0

includes/class.FAMNESettingsPage.php CHANGED
@@ -59,7 +59,7 @@ class FAMNESettingsPage
59
 
60
  ?>
61
  <div class="wrap">
62
- <h2>Manage the notification e-mails</h2>
63
  <form method="post" action="options.php">
64
  <?php
65
  // This prints out all hidden setting fields
@@ -70,9 +70,8 @@ class FAMNESettingsPage
70
  </form>
71
 
72
  <div style="padding:40px;text-align:center;color:rgba(0,0,0,0.7);">
73
- <p class="description">If you find this plugin useful, you can show your appreciation here :-)
74
- </p>
75
- <form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_top">
76
  <input type="hidden" name="cmd" value="_s-xclick">
77
  <input type="hidden" name="hosted_button_id" value="LTZWTLEDPULFE">
78
  <input type="image" src="https://www.paypalobjects.com/nl_NL/NL/i/btn/btn_donateCC_LG.gif" border="0" name="submit" alt="PayPal, de veilige en complete manier van online betalen.">
@@ -104,7 +103,7 @@ class FAMNESettingsPage
104
 
105
  add_settings_field(
106
  'wp_new_user_notification_to_admin', // ID
107
- 'New user notification to admin', // Title
108
  array( $this, 'field1_callback' ), // Callback
109
  'famne-admin', // Page
110
  'setting_section_id' // Section
@@ -112,7 +111,7 @@ class FAMNESettingsPage
112
 
113
  add_settings_field(
114
  'wp_new_user_notification_to_user', // ID
115
- 'New user notification to user', // Title
116
  array( $this, 'field7_callback' ), // Callback
117
  'famne-admin', // Page
118
  'setting_section_id' // Section
@@ -120,7 +119,7 @@ class FAMNESettingsPage
120
 
121
  add_settings_field(
122
  'wp_notify_postauthor',
123
- 'Notify post author',
124
  array( $this, 'field2_callback' ),
125
  'famne-admin',
126
  'setting_section_id'
@@ -128,7 +127,7 @@ class FAMNESettingsPage
128
 
129
  add_settings_field(
130
  'wp_notify_moderator',
131
- 'Notify moderator',
132
  array( $this, 'field3_callback' ),
133
  'famne-admin',
134
  'setting_section_id'
@@ -136,7 +135,7 @@ class FAMNESettingsPage
136
 
137
  add_settings_field(
138
  'wp_password_change_notification',
139
- 'Password change notification to admin',
140
  array( $this, 'field4_callback' ),
141
  'famne-admin',
142
  'setting_section_id'
@@ -144,7 +143,7 @@ class FAMNESettingsPage
144
 
145
  add_settings_field(
146
  'send_password_change_email',
147
- 'Password change notification to user',
148
  array( $this, 'field5_callback' ),
149
  'famne-admin',
150
  'setting_section_id'
@@ -152,7 +151,7 @@ class FAMNESettingsPage
152
 
153
  add_settings_field(
154
  'send_email_change_email',
155
- 'E-mail address change notification to user',
156
  array( $this, 'field6_callback' ),
157
  'famne-admin',
158
  'setting_section_id'
@@ -160,7 +159,7 @@ class FAMNESettingsPage
160
 
161
  add_settings_field(
162
  'send_password_forgotten_email',
163
- 'Password forgotten e-mail to user',
164
  array( $this, 'field8_callback' ),
165
  'famne-admin',
166
  'setting_section_id'
@@ -168,7 +167,7 @@ class FAMNESettingsPage
168
 
169
  add_settings_field(
170
  'send_password_admin_forgotten_email',
171
- 'Password forgotten e-mail to administrator',
172
  array( $this, 'field9_callback' ),
173
  'famne-admin',
174
  'setting_section_id'
@@ -197,7 +196,9 @@ class FAMNESettingsPage
197
  */
198
  public function print_section_info()
199
  {
200
- echo 'Manage your notification e-mail preferences below. <br/>By unchecking the checkbox you prevent sending the specific e-mails.';
 
 
201
  }
202
 
203
  /**
@@ -209,53 +210,53 @@ class FAMNESettingsPage
209
  $checked = isset( $this->options[$id]) && $this->options[$id] =='1' ?true:false;
210
 
211
  if ($checked) {$add_check = 'checked="checked"';}else {$add_check='';};
212
- print '<label><input type="checkbox" name="famne_options['.$id.']" value="1" '.$add_check.' />&nbsp;Enable sending e-mail</label>';
213
  print '<p class="description">'.$message.'</p>';
214
  }
215
 
216
 
217
  public function field1_callback()
218
  {
219
- $this->print_checkbox('field1','wp_new_user_notification_to_admin','Sends an e-mail to the site admin after a new user is registered.');
220
  }
221
 
222
  public function field7_callback()
223
  {
224
- $this->print_checkbox('field7','wp_new_user_notification_to_user','Send e-mail with login credentials to a newly-registered user.');
225
  }
226
 
227
  public function field2_callback()
228
  {
229
- $this->print_checkbox('field2','wp_notify_postauthor','Send e-mail to an author (and/or others) of a comment/trackback/pingback on a post.');
230
  }
231
 
232
  public function field3_callback()
233
  {
234
- $this->print_checkbox('field3','wp_notify_moderator','Send e-mail to the moderator of the blog about a new comment that is awaiting approval.');
235
  }
236
 
237
  public function field4_callback()
238
  {
239
- $this->print_checkbox('field4','wp_password_change_notification','Send e-mail to the blog admin of a user changing his or her password.');
240
  }
241
 
242
  public function field5_callback()
243
  {
244
- $this->print_checkbox('field5','send_password_change_email','Send e-mail to registered user about changing his or her password. Be careful with this option, because when unchecked, the forgotten password request e-mails will be blocked too.');
245
  }
246
 
247
  public function field6_callback()
248
  {
249
- $this->print_checkbox('field6','send_email_change_email','Send e-mail to registered user about changing his or her E-mail address.');
250
  }
251
 
252
  public function field8_callback()
253
  {
254
- $this->print_checkbox('field8','send_password_forgotten_email','Send the forgotten password e-mail to registered user.<br/>(To prevent locking yourself out, sending of the forgotten password e-mail for administrators will still work)');
255
  }
256
  public function field9_callback()
257
  {
258
- $this->print_checkbox('field9','send_password_admin_forgotten_email','Send the forgotten password e-mail to administrators. Okay, this is a <strong style="color:#900">DANGEROUS OPTION !</strong><br/> So be warned, because unchecking this option prevents sending out the forgotten password e-mail to all administrators. So hold on to your own password and uncheck this one at your own risk ;-)');
259
  }
260
 
261
  public function update_check()
59
 
60
  ?>
61
  <div class="wrap">
62
+ <h2><?php _e('Manage the notification e-mails','manage-notification-emails')?></h2>
63
  <form method="post" action="options.php">
64
  <?php
65
  // This prints out all hidden setting fields
70
  </form>
71
 
72
  <div style="padding:40px;text-align:center;color:rgba(0,0,0,0.7);">
73
+ <p class="description"><?php _e('If you find this plugin useful, you can show your appreciation here :-)','manage-notification-emails')?></p>
74
+ <form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_top">
 
75
  <input type="hidden" name="cmd" value="_s-xclick">
76
  <input type="hidden" name="hosted_button_id" value="LTZWTLEDPULFE">
77
  <input type="image" src="https://www.paypalobjects.com/nl_NL/NL/i/btn/btn_donateCC_LG.gif" border="0" name="submit" alt="PayPal, de veilige en complete manier van online betalen.">
103
 
104
  add_settings_field(
105
  'wp_new_user_notification_to_admin', // ID
106
+ __('New user notification to admin','manage-notification-emails'), // Title
107
  array( $this, 'field1_callback' ), // Callback
108
  'famne-admin', // Page
109
  'setting_section_id' // Section
111
 
112
  add_settings_field(
113
  'wp_new_user_notification_to_user', // ID
114
+ __('New user notification to user','manage-notification-emails'), // Title
115
  array( $this, 'field7_callback' ), // Callback
116
  'famne-admin', // Page
117
  'setting_section_id' // Section
119
 
120
  add_settings_field(
121
  'wp_notify_postauthor',
122
+ __('Notify post author','manage-notification-emails'),
123
  array( $this, 'field2_callback' ),
124
  'famne-admin',
125
  'setting_section_id'
127
 
128
  add_settings_field(
129
  'wp_notify_moderator',
130
+ __('Notify moderator','manage-notification-emails'),
131
  array( $this, 'field3_callback' ),
132
  'famne-admin',
133
  'setting_section_id'
135
 
136
  add_settings_field(
137
  'wp_password_change_notification',
138
+ __('Password change notification to admin','manage-notification-emails'),
139
  array( $this, 'field4_callback' ),
140
  'famne-admin',
141
  'setting_section_id'
143
 
144
  add_settings_field(
145
  'send_password_change_email',
146
+ __('Password change notification to user','manage-notification-emails'),
147
  array( $this, 'field5_callback' ),
148
  'famne-admin',
149
  'setting_section_id'
151
 
152
  add_settings_field(
153
  'send_email_change_email',
154
+ __('E-mail address change notification to user','manage-notification-emails'),
155
  array( $this, 'field6_callback' ),
156
  'famne-admin',
157
  'setting_section_id'
159
 
160
  add_settings_field(
161
  'send_password_forgotten_email',
162
+ __('Password forgotten e-mail to user','manage-notification-emails'),
163
  array( $this, 'field8_callback' ),
164
  'famne-admin',
165
  'setting_section_id'
167
 
168
  add_settings_field(
169
  'send_password_admin_forgotten_email',
170
+ __('Password forgotten e-mail to administrator','manage-notification-emails'),
171
  array( $this, 'field9_callback' ),
172
  'famne-admin',
173
  'setting_section_id'
196
  */
197
  public function print_section_info()
198
  {
199
+ _e('Manage your notification e-mail preferences below.','manage-notification-emails');
200
+ echo '<br/>';
201
+ _e('By unchecking the checkbox you prevent sending the specific e-mails.','manage-notification-emails');
202
  }
203
 
204
  /**
210
  $checked = isset( $this->options[$id]) && $this->options[$id] =='1' ?true:false;
211
 
212
  if ($checked) {$add_check = 'checked="checked"';}else {$add_check='';};
213
+ print '<label><input type="checkbox" name="famne_options['.$id.']" value="1" '.$add_check.' />&nbsp;'.__('Enable sending e-mail','manage-notification-emails').'</label>';
214
  print '<p class="description">'.$message.'</p>';
215
  }
216
 
217
 
218
  public function field1_callback()
219
  {
220
+ $this->print_checkbox('field1','wp_new_user_notification_to_admin',__('Sends an e-mail to the site admin after a new user is registered.','manage-notification-emails'));
221
  }
222
 
223
  public function field7_callback()
224
  {
225
+ $this->print_checkbox('field7','wp_new_user_notification_to_user',__('Send e-mail with login credentials to a newly-registered user.','manage-notification-emails'));
226
  }
227
 
228
  public function field2_callback()
229
  {
230
+ $this->print_checkbox('field2','wp_notify_postauthor',__('Send e-mail to an author (and/or others) of a comment/trackback/pingback on a post.','manage-notification-emails'));
231
  }
232
 
233
  public function field3_callback()
234
  {
235
+ $this->print_checkbox('field3','wp_notify_moderator',__('Send e-mail to the moderator of the blog about a new comment that is awaiting approval.','manage-notification-emails'));
236
  }
237
 
238
  public function field4_callback()
239
  {
240
+ $this->print_checkbox('field4','wp_password_change_notification',__('Send e-mail to the blog admin of a user changing his or her password.','manage-notification-emails'));
241
  }
242
 
243
  public function field5_callback()
244
  {
245
+ $this->print_checkbox('field5','send_password_change_email',__('Send e-mail to registered user about changing his or her password. Be careful with this option, because when unchecked, the forgotten password request e-mails will be blocked too.','manage-notification-emails'));
246
  }
247
 
248
  public function field6_callback()
249
  {
250
+ $this->print_checkbox('field6','send_email_change_email',__('Send e-mail to registered user about changing his or her E-mail address.','manage-notification-emails'));
251
  }
252
 
253
  public function field8_callback()
254
  {
255
+ $this->print_checkbox('field8','send_password_forgotten_email',__('Send the forgotten password e-mail to registered user.<br/>(To prevent locking yourself out, sending of the forgotten password e-mail for administrators will still work)','manage-notification-emails'));
256
  }
257
  public function field9_callback()
258
  {
259
+ $this->print_checkbox('field9','send_password_admin_forgotten_email',__('Send the forgotten password e-mail to administrators. Okay, this is a <strong style="color:#900">DANGEROUS OPTION !</strong><br/> So be warned, because unchecking this option prevents sending out the forgotten password e-mail to all administrators. So hold on to your own password and uncheck this one at your own risk ;-)','manage-notification-emails'));
260
  }
261
 
262
  public function update_check()
includes/pluggable-functions.php ADDED
@@ -0,0 +1,213 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+
4
+ STOP SENDING NOTIFICATION MAILS TO THE USERS
5
+ version: 1.2.0
6
+ */
7
+
8
+ if (!defined('ABSPATH')) die();
9
+
10
+ $famne_options = get_option( 'famne_options' );
11
+
12
+ if (!function_exists('dont_send_password_change_email') ) :
13
+ /**
14
+ * Email password change notification to registered user.
15
+ *
16
+ */
17
+ //echo "dont_send_password_change_email";
18
+ function dont_send_password_change_email( $send=false, $user='', $userdata='')
19
+ {
20
+
21
+ global $famne_options;
22
+
23
+ if (is_array($user)) $user = (object) $user;
24
+
25
+ if (!empty($famne_options['wp_password_change_notification']) ) :
26
+
27
+ // send a copy of password change notification to the admin
28
+ // but check to see if it's the admin whose password we're changing, and skip this
29
+ if ( 0 !== strcasecmp( $user->user_email, get_option( 'admin_email' ) ) ) {
30
+ $message = sprintf(__('Password Lost and Changed for user: %s'), $user->user_login) . "\r\n";
31
+ // The blogname option is escaped with esc_html on the way into the database in sanitize_option
32
+ // we want to reverse this for the plain text arena of emails.
33
+ $blogname = wp_specialchars_decode(get_option('blogname'), ENT_QUOTES);
34
+ wp_mail(get_option('admin_email'), sprintf(__('[%s] Password Lost/Changed'), $blogname), $message);
35
+ }
36
+
37
+ endif;
38
+
39
+ if (empty($famne_options['send_password_change_email']) ) :
40
+ return false;
41
+ else :
42
+ return true;
43
+ endif;
44
+ }
45
+ add_filter('send_password_change_email', 'dont_send_password_change_email',1,3);
46
+ endif;
47
+
48
+
49
+ if (empty($famne_options['send_email_change_email']) && !function_exists('dont_send_email_change_email') ) :
50
+ /**
51
+ * Email users e-mail change notification to registered user.
52
+ *
53
+ */
54
+ //echo "dont_send_email_change_email off";
55
+ function dont_send_email_change_email( $send=false, $user='', $userdata='')
56
+ {
57
+ return false;
58
+ }
59
+ add_filter('send_email_change_email', 'dont_send_email_change_email',1,3);
60
+ endif;
61
+
62
+
63
+
64
+ if (!function_exists('wp_new_user_notification') ) :
65
+ /**
66
+ * Email login credentials to a newly-registered user.
67
+ *
68
+ * A new user registration notification is also sent to admin email.
69
+ */
70
+ //echo "wp_new_user_notification off";
71
+ function wp_new_user_notification( $user_id, $notify = '' ) {
72
+
73
+ global $famne_options;
74
+
75
+ if (!empty($famne_options['wp_new_user_notification_to_admin']))
76
+ {
77
+ fa_new_user_notification_to_admin($user_id);
78
+ }
79
+
80
+ if (!empty($famne_options['wp_new_user_notification_to_user']))
81
+ {
82
+ fa_new_user_notification_to_user($user_id);
83
+ }
84
+ }
85
+ endif;
86
+
87
+ if (empty($famne_options['wp_notify_postauthor']) && !function_exists('wp_notify_postauthor') ) :
88
+ /**
89
+ * Notify an author (and/or others) of a comment/trackback/pingback on a post.
90
+ */
91
+ //echo "wp_notify_postauthor off";
92
+ function wp_notify_postauthor( $comment_id, $deprecated = null ) {}
93
+ endif;
94
+
95
+ if (empty($famne_options['wp_notify_moderator']) && !function_exists('wp_notify_moderator') ) :
96
+ /**
97
+ * Notifies the moderator of the blog about a new comment that is awaiting approval.
98
+ */
99
+ //echo "wp_notify_moderator off";
100
+ function wp_notify_moderator($comment_id) {}
101
+ endif;
102
+
103
+
104
+
105
+
106
+ if (empty($famne_options['wp_password_change_notification']) && !function_exists('wp_password_change_notification') ) :
107
+ /**
108
+ * Notify the blog admin of a user changing password, normally via email.
109
+ */
110
+ function wp_password_change_notification($user) {}
111
+
112
+
113
+ endif;
114
+
115
+
116
+
117
+ if ((empty($famne_options['send_password_forgotten_email']) || empty($famne_options['send_password_admin_forgotten_email'])) && !function_exists('dont_send_password_forgotten_email') ) :
118
+ /**
119
+ * Email forgotten password notification to registered user.
120
+ *
121
+ */
122
+ //echo "dont_send_password_forgotten_email off";exit;
123
+ function dont_send_password_forgotten_email( $send=true, $user_id=0 )
124
+ {
125
+ global $famne_options;
126
+
127
+ $is_administrator = fa_user_is_administrator($user_id);
128
+
129
+ if ($is_administrator && empty($famne_options['send_password_admin_forgotten_email']))
130
+ {
131
+ // stop sending admin forgot email
132
+ return false;
133
+ }
134
+ if (!$is_administrator && empty($famne_options['send_password_forgotten_email']))
135
+ {
136
+ // stop sending user forgot email
137
+ return false;
138
+ }
139
+ // none of the above so give the default status back
140
+ return $send;
141
+ }
142
+ add_filter('allow_password_reset', 'dont_send_password_forgotten_email',1,3);
143
+ endif;
144
+
145
+
146
+
147
+
148
+
149
+
150
+ function fa_new_user_notification_to_admin ($user_id)
151
+ {
152
+
153
+ //Most parts of this function are copied form pluggable.php
154
+
155
+ global $wpdb;
156
+ $user = get_userdata( $user_id );
157
+
158
+ // The blogname option is escaped with esc_html on the way into the database in sanitize_option
159
+ // we want to reverse this for the plain text arena of emails.
160
+ $blogname = wp_specialchars_decode(get_option('blogname'), ENT_QUOTES);
161
+
162
+ $message = sprintf(__('New user registration on your site %s:'), $blogname) . "\r\n\r\n";
163
+ $message .= sprintf(__('Username: %s'), $user->user_login) . "\r\n\r\n";
164
+ $message .= sprintf(__('E-mail: %s'), $user->user_email) . "\r\n";
165
+
166
+
167
+ @wp_mail(get_option('admin_email'), sprintf(__('[%s] New User Registration'), $blogname), $message);
168
+ }
169
+
170
+
171
+ function fa_new_user_notification_to_user($user_id)
172
+ {
173
+ global $wpdb;
174
+ $user = get_userdata( $user_id );
175
+
176
+ // The blogname option is escaped with esc_html on the way into the database in sanitize_option
177
+ // we want to reverse this for the plain text arena of emails.
178
+ $blogname = wp_specialchars_decode(get_option('blogname'), ENT_QUOTES);
179
+
180
+
181
+ // Generate something random for a password reset key.
182
+ $key = wp_generate_password( 20, false );
183
+
184
+ /** This action is documented in wp-login.php */
185
+ do_action( 'retrieve_password_key', $user->user_login, $key );
186
+
187
+ // Now insert the key, hashed, into the DB.
188
+ if ( empty( $wp_hasher ) ) {
189
+ require_once ABSPATH . WPINC . '/class-phpass.php';
190
+ $wp_hasher = new PasswordHash( 8, true );
191
+ }
192
+ $hashed = time() . ':' . $wp_hasher->HashPassword( $key );
193
+ $wpdb->update( $wpdb->users, array( 'user_activation_key' => $hashed ), array( 'user_login' => $user->user_login ) );
194
+
195
+ $message = sprintf(__('Username: %s'), $user->user_login) . "\r\n\r\n";
196
+ $message .= __('To set your password, visit the following address:') . "\r\n\r\n";
197
+ $message .= '<' . network_site_url("wp-login.php?action=rp&key=$key&login=" . rawurlencode($user->user_login), 'login') . ">\r\n\r\n";
198
+
199
+ $message .= wp_login_url() . "\r\n";
200
+
201
+ wp_mail($user->user_email, sprintf(__('[%s] Your username and password info'), $blogname), $message);
202
+ }
203
+
204
+ function fa_user_is_administrator($user_id=0)
205
+ {
206
+ $user = new WP_User( intval($user_id) );
207
+ $is_administrator = false;
208
+ if ( !empty( $user->roles ) && is_array( $user->roles ) ) {
209
+ foreach ( $user->roles as $role )
210
+ if ( strtolower($role) == 'administrator') $is_administrator = true;
211
+ }
212
+ return $is_administrator;
213
+ }
languages/manage-notification-emails-nl_NL.mo ADDED
Binary file
languages/manage-notification-emails-nl_NL.po ADDED
@@ -0,0 +1,152 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: Famne\n"
4
+ "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: \n"
6
+ "PO-Revision-Date: 2018-10-19 22:36+0200\n"
7
+ "Language-Team: \n"
8
+ "MIME-Version: 1.0\n"
9
+ "Content-Type: text/plain; charset=UTF-8\n"
10
+ "Content-Transfer-Encoding: 8bit\n"
11
+ "Plural-Forms: nplurals=2; plural=(n != 1);\n"
12
+ "X-Poedit-SourceCharset: utf-8\n"
13
+ "X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;"
14
+ "_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2\n"
15
+ "X-Poedit-Basepath: ..\n"
16
+ "X-Textdomain-Support: yes\n"
17
+ "X-Generator: Poedit 2.2\n"
18
+ "Last-Translator: \n"
19
+ "Language: nl\n"
20
+ "X-Poedit-SearchPath-0: .\n"
21
+
22
+ #: includes/class.FAMNESettingsPage.php:62
23
+ msgid "Manage the notification e-mails"
24
+ msgstr "Beheer notificatie e-mails"
25
+
26
+ #: includes/class.FAMNESettingsPage.php:73
27
+ msgid "If you find this plugin useful, you can show your appreciation here :-)"
28
+ msgstr "Geef een kleine donatie als je deze plugin handig vindt"
29
+
30
+ #: includes/class.FAMNESettingsPage.php:106
31
+ msgid "New user notification to admin"
32
+ msgstr "Nieuwe gebruiker notificatie aan sitebeheerder"
33
+
34
+ #: includes/class.FAMNESettingsPage.php:114
35
+ msgid "New user notification to user"
36
+ msgstr "Nieuwe gebruiker notificatie aan gebruiker"
37
+
38
+ #: includes/class.FAMNESettingsPage.php:122
39
+ msgid "Notify post author"
40
+ msgstr "Notificeer bericht schrijver"
41
+
42
+ #: includes/class.FAMNESettingsPage.php:130
43
+ msgid "Notify moderator"
44
+ msgstr "Notificeer moderator"
45
+
46
+ #: includes/class.FAMNESettingsPage.php:138
47
+ msgid "Password change notification to admin"
48
+ msgstr "Wijziging wachtwoord notificatie aan sitebeheerder"
49
+
50
+ #: includes/class.FAMNESettingsPage.php:146
51
+ msgid "Password change notification to user"
52
+ msgstr "Wijziging wachtwoord notificatie aan gebruiker"
53
+
54
+ #: includes/class.FAMNESettingsPage.php:154
55
+ msgid "E-mail address change notification to user"
56
+ msgstr "E-mailadres wijziging notificatie aan gebruiker"
57
+
58
+ #: includes/class.FAMNESettingsPage.php:162
59
+ msgid "Password forgotten e-mail to user"
60
+ msgstr "Wachtwoord vergeten e-mail aan gebruiker"
61
+
62
+ #: includes/class.FAMNESettingsPage.php:170
63
+ msgid "Password forgotten e-mail to administrator"
64
+ msgstr "Wachtwoord vergeten e-mail aan sitebeheerder"
65
+
66
+ #: includes/class.FAMNESettingsPage.php:199
67
+ msgid "Manage your notification e-mail preferences below."
68
+ msgstr "Beheer hieronder jouw notificatie e-mail voorkeuren."
69
+
70
+ #: includes/class.FAMNESettingsPage.php:201
71
+ msgid "By unchecking the checkbox you prevent sending the specific e-mails."
72
+ msgstr ""
73
+ "Door de aanvinkbox niet aan te vinden voorkom je het verzenden van de "
74
+ "specifieke e-mails."
75
+
76
+ #: includes/class.FAMNESettingsPage.php:213
77
+ msgid "Enable sending e-mail"
78
+ msgstr "E-mail verzenden activeren"
79
+
80
+ #: includes/class.FAMNESettingsPage.php:220
81
+ msgid "Sends an e-mail to the site admin after a new user is registered."
82
+ msgstr ""
83
+ "Verstuur een e-mail naar de sitebeheerder zodra er een nieuwe gebruiker is "
84
+ "geregistreerd."
85
+
86
+ #: includes/class.FAMNESettingsPage.php:225
87
+ msgid "Send e-mail with login credentials to a newly-registered user."
88
+ msgstr ""
89
+ "Verstuur een e-mail met login gegevens naar een nieuw geregistreerde "
90
+ "gebruiker."
91
+
92
+ #: includes/class.FAMNESettingsPage.php:230
93
+ msgid ""
94
+ "Send e-mail to an author (and/or others) of a comment/trackback/pingback on "
95
+ "a post."
96
+ msgstr ""
97
+ "Verstuur een e-mail naar de auteur (en/of anderen) van een comment/trackback/"
98
+ "pingback op een bericht."
99
+
100
+ #: includes/class.FAMNESettingsPage.php:235
101
+ msgid ""
102
+ "Send e-mail to the moderator of the blog about a new comment that is "
103
+ "awaiting approval."
104
+ msgstr ""
105
+ "Verstuur een e-mail naar de moderator van het blog over een nieuwe comment "
106
+ "welke op een goedkeuring wacht."
107
+
108
+ #: includes/class.FAMNESettingsPage.php:240
109
+ msgid "Send e-mail to the blog admin of a user changing his or her password."
110
+ msgstr ""
111
+ "Verstuur een e-mail naar de sitebeheerder van een gebruiker welke zijn "
112
+ "wachtwoord heeft aangepast."
113
+
114
+ #: includes/class.FAMNESettingsPage.php:245
115
+ msgid ""
116
+ "Send e-mail to registered user about changing his or her password. Be "
117
+ "careful with this option, because when unchecked, the forgotten password "
118
+ "request e-mails will be blocked too."
119
+ msgstr ""
120
+ "Verstuur een e-mail naar een geregistreerde gebruiker over het aanpassen van "
121
+ "zijn of haar wachtwoord. Wees voorzichtig met deze optie omdat wanneer niet "
122
+ "aangevinkt, de vergeten wachtwoord e-mails aanvragen ook worden geblokkeerd "
123
+ "en dus niet verzonden."
124
+
125
+ #: includes/class.FAMNESettingsPage.php:250
126
+ msgid ""
127
+ "Send e-mail to registered user about changing his or her E-mail address."
128
+ msgstr ""
129
+ "Verstuur een e-mail naar een geregistreerde gebruiker over het aanpassen van "
130
+ "zijn of haar e-mailadres."
131
+
132
+ #: includes/class.FAMNESettingsPage.php:255
133
+ msgid ""
134
+ "Send the forgotten password e-mail to registered user.<br/>(To prevent "
135
+ "locking yourself out, sending of the forgotten password e-mail for "
136
+ "administrators will still work)"
137
+ msgstr ""
138
+ "Verstuur het vergeten wachtwoord e-mail naar de geregistreerde gebruiker."
139
+
140
+ #: includes/class.FAMNESettingsPage.php:259
141
+ msgid ""
142
+ "Send the forgotten password e-mail to administrators. Okay, this is a "
143
+ "<strong style=\"color:#900\">DANGEROUS OPTION !</strong><br/> So be warned, "
144
+ "because unchecking this option prevents sending out the forgotten password e-"
145
+ "mail to all administrators. So hold on to your own password and uncheck this "
146
+ "one at your own risk ;-)"
147
+ msgstr ""
148
+ "Verstuur het vergeten wachtwoord e-mail aan sitebeheerders. Okee, dit is een "
149
+ "<strong style=\"color:#900\">GEVAARLIJKE OPTIE !</strong><br/>Dus wees "
150
+ "gewaarschuwd, omdat bij het niet aanvinken van deze optie het vergeten "
151
+ "wachtwoord e-mail niet meer wordt verstuurd naar sitebeheerders. Dus houdt "
152
+ "je wachtwoord bij de hand en vink deze optie uit op eigen risico ;-)"
languages/manage-notification-emails.pot ADDED
@@ -0,0 +1,112 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #, fuzzy
2
+ msgid ""
3
+ msgstr ""
4
+ "Project-Id-Version: Famne\n"
5
+ "Report-Msgid-Bugs-To: \n"
6
+ "POT-Creation-Date: \n"
7
+ "PO-Revision-Date: 2018-10-19 21:04:29+0000\n"
8
+ "Last-Translator: none\n"
9
+ "Language-Team: \n"
10
+ "MIME-Version: 1.0\n"
11
+ "Content-Type: text/plain; charset=UTF-8\n"
12
+ "Content-Transfer-Encoding: 8bit\n"
13
+ "Plural-Forms: nplurals=2; plural=n != 1;\n"
14
+ "X-Poedit-SourceCharset: utf-8\n"
15
+ "X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2\n"
16
+ "X-Poedit-Basepath: ..\n"
17
+ "X-Textdomain-Support: yes\n"
18
+ "Language: en_US\n"
19
+ "X-Generator: Poedit 2.2\n"
20
+ "X-Poedit-SearchPath-0: .\n"
21
+
22
+ #: includes/class.FAMNESettingsPage.php:62
23
+ msgid "Manage the notification e-mails"
24
+ msgstr ""
25
+
26
+ #: includes/class.FAMNESettingsPage.php:73
27
+ msgid "If you find this plugin useful, you can show your appreciation here :-)"
28
+ msgstr ""
29
+
30
+ #: includes/class.FAMNESettingsPage.php:106
31
+ msgid "New user notification to admin"
32
+ msgstr ""
33
+
34
+ #: includes/class.FAMNESettingsPage.php:114
35
+ msgid "New user notification to user"
36
+ msgstr ""
37
+
38
+ #: includes/class.FAMNESettingsPage.php:122
39
+ msgid "Notify post author"
40
+ msgstr ""
41
+
42
+ #: includes/class.FAMNESettingsPage.php:130
43
+ msgid "Notify moderator"
44
+ msgstr ""
45
+
46
+ #: includes/class.FAMNESettingsPage.php:138
47
+ msgid "Password change notification to admin"
48
+ msgstr ""
49
+
50
+ #: includes/class.FAMNESettingsPage.php:146
51
+ msgid "Password change notification to user"
52
+ msgstr ""
53
+
54
+ #: includes/class.FAMNESettingsPage.php:154
55
+ msgid "E-mail address change notification to user"
56
+ msgstr ""
57
+
58
+ #: includes/class.FAMNESettingsPage.php:162
59
+ msgid "Password forgotten e-mail to user"
60
+ msgstr ""
61
+
62
+ #: includes/class.FAMNESettingsPage.php:170
63
+ msgid "Password forgotten e-mail to administrator"
64
+ msgstr ""
65
+
66
+ #: includes/class.FAMNESettingsPage.php:199
67
+ msgid "Manage your notification e-mail preferences below."
68
+ msgstr ""
69
+
70
+ #: includes/class.FAMNESettingsPage.php:201
71
+ msgid "By unchecking the checkbox you prevent sending the specific e-mails."
72
+ msgstr ""
73
+
74
+ #: includes/class.FAMNESettingsPage.php:213
75
+ msgid "Enable sending e-mail"
76
+ msgstr ""
77
+
78
+ #: includes/class.FAMNESettingsPage.php:220
79
+ msgid "Sends an e-mail to the site admin after a new user is registered."
80
+ msgstr ""
81
+
82
+ #: includes/class.FAMNESettingsPage.php:225
83
+ msgid "Send e-mail with login credentials to a newly-registered user."
84
+ msgstr ""
85
+
86
+ #: includes/class.FAMNESettingsPage.php:230
87
+ msgid "Send e-mail to an author (and/or others) of a comment/trackback/pingback on a post."
88
+ msgstr ""
89
+
90
+ #: includes/class.FAMNESettingsPage.php:235
91
+ msgid "Send e-mail to the moderator of the blog about a new comment that is awaiting approval."
92
+ msgstr ""
93
+
94
+ #: includes/class.FAMNESettingsPage.php:240
95
+ msgid "Send e-mail to the blog admin of a user changing his or her password."
96
+ msgstr ""
97
+
98
+ #: includes/class.FAMNESettingsPage.php:245
99
+ msgid "Send e-mail to registered user about changing his or her password. Be careful with this option, because when unchecked, the forgotten password request e-mails will be blocked too."
100
+ msgstr ""
101
+
102
+ #: includes/class.FAMNESettingsPage.php:250
103
+ msgid "Send e-mail to registered user about changing his or her E-mail address."
104
+ msgstr ""
105
+
106
+ #: includes/class.FAMNESettingsPage.php:255
107
+ msgid "Send the forgotten password e-mail to registered user.<br/>(To prevent locking yourself out, sending of the forgotten password e-mail for administrators will still work)"
108
+ msgstr ""
109
+
110
+ #: includes/class.FAMNESettingsPage.php:259
111
+ msgid "Send the forgotten password e-mail to administrators. Okay, this is a <strong style=\"color:#900\">DANGEROUS OPTION !</strong><br/> So be warned, because unchecking this option prevents sending out the forgotten password e-mail to all administrators. So hold on to your own password and uncheck this one at your own risk ;-)"
112
+ msgstr ""
manage-notification-emails.php CHANGED
@@ -1,13 +1,13 @@
1
  <?php
2
  /*
3
  Plugin Name: Manage Notification E-mails
4
- Plugin URI: http://www.freeamigos.mx/wp-plugins/manage-notification-emails/1.3.0
5
  Description: This plugin gives you the option to disable some of the notification e-mails send by Wordpress. It's a simple plugin but effective.
6
-
7
-
8
- Version: 1.3.0
9
  Author: Virgial Berveling
10
- Author URI: http://www.freeamigos.mx
 
 
11
  License: GPLv2
12
  */
13
 
@@ -59,7 +59,7 @@ License: GPLv2
59
 
60
  if (!defined('ABSPATH')) die();
61
 
62
- define( 'FA_MNE_VERSION', '1.3.0' );
63
  define( 'FA_MNE_PLUGIN_BASENAME', plugin_basename( __FILE__ ) );
64
  define( 'FA_MNE_PLUGIN_DIR', untrailingslashit( dirname( __FILE__ ) ) );
65
 
@@ -91,5 +91,17 @@ if (version_compare($wp_version, '4.7.0') >= 0) {
91
  include_once( FA_MNE_PLUGIN_DIR . '/includes/pluggable-functions-1.2.php' );
92
  }
93
 
 
 
 
 
 
 
 
 
 
 
 
94
 
95
  famne_init();
 
1
  <?php
2
  /*
3
  Plugin Name: Manage Notification E-mails
4
+ Plugin URI: https://www.freeamigos.nl/wp-plugins/manage-notification-emails/1.4.0
5
  Description: This plugin gives you the option to disable some of the notification e-mails send by Wordpress. It's a simple plugin but effective.
6
+ Version: 1.4.0
 
 
7
  Author: Virgial Berveling
8
+ Author URI: https://www.freeamigos.nl
9
+ Text Domain: manage-notification-emails
10
+ Domain Path: /languages/
11
  License: GPLv2
12
  */
13
 
59
 
60
  if (!defined('ABSPATH')) die();
61
 
62
+ define( 'FA_MNE_VERSION', '1.4.0' );
63
  define( 'FA_MNE_PLUGIN_BASENAME', plugin_basename( __FILE__ ) );
64
  define( 'FA_MNE_PLUGIN_DIR', untrailingslashit( dirname( __FILE__ ) ) );
65
 
91
  include_once( FA_MNE_PLUGIN_DIR . '/includes/pluggable-functions-1.2.php' );
92
  }
93
 
94
+ /**
95
+ * Translations.
96
+ *
97
+ * @since 1.4.0
98
+ */
99
+ add_action('plugins_loaded', 'famne_load_textdomain');
100
+ if ( ! function_exists( 'famne_load_textdomain' ) ) {
101
+ function famne_load_textdomain() {
102
+ load_plugin_textdomain( 'manage-notification-emails', false, FA_MNE_PLUGIN_DIR . '/languages/' );
103
+ }
104
+ }
105
 
106
  famne_init();
107
+
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: (Virgial)
3
  Tags: notification,notify,email,user,password,moderator,postauthor,admin,e-mail,switch
4
  Requires at least: 4.0.0
5
  Donate link:https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=TYG56SLWNG42N
6
- Tested up to: 4.8
7
- Stable tag: 1.3.0
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -61,6 +61,9 @@ If you're one of the early installers, than you'll be happy to see that de new u
61
 
62
  == Changelog ==
63
 
 
 
 
64
  = 1.3.0 =
65
  ADDED: passing through the $notify variable, available sinds 4.6. This is for other plugins to override default sending to admin or user. Only useful if sending within this plugin is activated.
66
  UPDATED: updated with the newer pluggable send functions of wordpress 4.7.
3
  Tags: notification,notify,email,user,password,moderator,postauthor,admin,e-mail,switch
4
  Requires at least: 4.0.0
5
  Donate link:https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=TYG56SLWNG42N
6
+ Tested up to: 4.9.8
7
+ Stable tag: 1.4.0
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
61
 
62
  == Changelog ==
63
 
64
+ = 1.4.0 =
65
+ ADDED: Multi-language support
66
+
67
  = 1.3.0 =
68
  ADDED: passing through the $notify variable, available sinds 4.6. This is for other plugins to override default sending to admin or user. Only useful if sending within this plugin is activated.
69
  UPDATED: updated with the newer pluggable send functions of wordpress 4.7.