Version Description
FIXED: Checking password change notification to admin now works. ADDED: Splitted the manage option for new user notification e-mail into user and admin e-mail. UPDATED: Clearified some comments and fixed some typo's.
Download this release
Release Info
Developer | Virgial |
Plugin | Manage Notification E-mails |
Version | 1.1.0 |
Comparing to | |
See all releases |
Code changes from version 1.0.0 to 1.1.0
- includes/class.FAMNESettingsPage.php +85 -16
- includes/pluggable-functions.php +102 -7
- manage-notification-emails.php +5 -8
- readme.txt +35 -15
includes/class.FAMNESettingsPage.php
CHANGED
@@ -12,7 +12,7 @@
|
|
12 |
* @author Virgial Berveling
|
13 |
* @copyright 2006-2015
|
14 |
*
|
15 |
-
* version: 1.
|
16 |
*/
|
17 |
|
18 |
|
@@ -28,8 +28,10 @@ class FAMNESettingsPage
|
|
28 |
*/
|
29 |
public function __construct()
|
30 |
{
|
|
|
31 |
add_action( 'admin_menu', array( $this, 'add_plugin_page' ) );
|
32 |
add_action( 'admin_init', array( $this, 'page_init' ) );
|
|
|
33 |
}
|
34 |
|
35 |
/**
|
@@ -66,7 +68,19 @@ class FAMNESettingsPage
|
|
66 |
submit_button();
|
67 |
?>
|
68 |
</form>
|
69 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
70 |
<?php
|
71 |
}
|
72 |
|
@@ -89,16 +103,24 @@ class FAMNESettingsPage
|
|
89 |
);
|
90 |
|
91 |
add_settings_field(
|
92 |
-
'
|
93 |
-
'New user notification', // Title
|
94 |
array( $this, 'field1_callback' ), // Callback
|
95 |
'famne-admin', // Page
|
96 |
'setting_section_id' // Section
|
97 |
);
|
98 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
99 |
add_settings_field(
|
100 |
'wp_notify_postauthor',
|
101 |
-
'Notify
|
102 |
array( $this, 'field2_callback' ),
|
103 |
'famne-admin',
|
104 |
'setting_section_id'
|
@@ -130,7 +152,7 @@ class FAMNESettingsPage
|
|
130 |
|
131 |
add_settings_field(
|
132 |
'send_email_change_email',
|
133 |
-
'E-
|
134 |
array( $this, 'field6_callback' ),
|
135 |
'famne-admin',
|
136 |
'setting_section_id'
|
@@ -147,6 +169,7 @@ class FAMNESettingsPage
|
|
147 |
*/
|
148 |
public function sanitize( $input )
|
149 |
{
|
|
|
150 |
$new_input = array();
|
151 |
foreach( $input as $key=>$val )
|
152 |
$new_input[$key] = $val == '1'?'1':'';
|
@@ -159,7 +182,7 @@ class FAMNESettingsPage
|
|
159 |
*/
|
160 |
public function print_section_info()
|
161 |
{
|
162 |
-
echo '
|
163 |
}
|
164 |
|
165 |
/**
|
@@ -168,42 +191,88 @@ class FAMNESettingsPage
|
|
168 |
|
169 |
public function print_checkbox($name,$id,$message='')
|
170 |
{
|
171 |
-
$checked = isset( $this->options[$id]) && $this->options[$id] =='1' ?
|
172 |
|
173 |
-
|
174 |
-
print '<label><input type="checkbox"
|
|
|
175 |
}
|
176 |
|
177 |
|
178 |
public function field1_callback()
|
179 |
{
|
180 |
-
$this->print_checkbox('field1','
|
|
|
|
|
|
|
|
|
|
|
181 |
}
|
182 |
|
183 |
public function field2_callback()
|
184 |
{
|
185 |
-
$this->print_checkbox('field2','wp_notify_postauthor','
|
186 |
}
|
187 |
|
188 |
public function field3_callback()
|
189 |
{
|
190 |
-
$this->print_checkbox('field3','wp_notify_moderator','
|
191 |
}
|
192 |
|
193 |
public function field4_callback()
|
194 |
{
|
195 |
-
$this->print_checkbox('field4','wp_password_change_notification','
|
196 |
}
|
197 |
|
198 |
public function field5_callback()
|
199 |
{
|
200 |
-
$this->print_checkbox('field5','send_password_change_email','
|
201 |
}
|
202 |
|
203 |
public function field6_callback()
|
204 |
{
|
205 |
-
$this->print_checkbox('field6','send_email_change_email','
|
206 |
}
|
207 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
208 |
|
|
|
|
|
|
|
209 |
}
|
12 |
* @author Virgial Berveling
|
13 |
* @copyright 2006-2015
|
14 |
*
|
15 |
+
* version: 1.1.0
|
16 |
*/
|
17 |
|
18 |
|
28 |
*/
|
29 |
public function __construct()
|
30 |
{
|
31 |
+
add_action( 'plugins_loaded', array($this, 'update_check') );
|
32 |
add_action( 'admin_menu', array( $this, 'add_plugin_page' ) );
|
33 |
add_action( 'admin_init', array( $this, 'page_init' ) );
|
34 |
+
|
35 |
}
|
36 |
|
37 |
/**
|
68 |
submit_button();
|
69 |
?>
|
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.">
|
79 |
+
<img alt="" border="0" src="https://www.paypalobjects.com/nl_NL/i/scr/pixel.gif" width="1" height="1">
|
80 |
+
</form>
|
81 |
+
</div>
|
82 |
+
|
83 |
+
</div>
|
84 |
<?php
|
85 |
}
|
86 |
|
103 |
);
|
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
|
111 |
);
|
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
|
119 |
+
);
|
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'
|
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'
|
169 |
*/
|
170 |
public function sanitize( $input )
|
171 |
{
|
172 |
+
if (empty($input)) $input = array();
|
173 |
$new_input = array();
|
174 |
foreach( $input as $key=>$val )
|
175 |
$new_input[$key] = $val == '1'?'1':'';
|
182 |
*/
|
183 |
public function print_section_info()
|
184 |
{
|
185 |
+
echo 'Manage your notification e-mail preferences below. <br/>By unchecking the checkbox you prevent sending the specific e-mails.';
|
186 |
}
|
187 |
|
188 |
/**
|
191 |
|
192 |
public function print_checkbox($name,$id,$message='')
|
193 |
{
|
194 |
+
$checked = isset( $this->options[$id]) && $this->options[$id] =='1' ?true:false;
|
195 |
|
196 |
+
if ($checked) {$add_check = 'checked="checked"';}else {$add_check='';};
|
197 |
+
print '<label><input type="checkbox" name="famne_options['.$id.']" value="1" '.$add_check.' /> Enable sending e-mail</label>';
|
198 |
+
print '<p class="description">'.$message.'</p>';
|
199 |
}
|
200 |
|
201 |
|
202 |
public function field1_callback()
|
203 |
{
|
204 |
+
$this->print_checkbox('field1','wp_new_user_notification_to_admin','Sends an e-mail to the site admin after a new user is registrated.');
|
205 |
+
}
|
206 |
+
|
207 |
+
public function field7_callback()
|
208 |
+
{
|
209 |
+
$this->print_checkbox('field7','wp_new_user_notification_to_user','Send e-mail with login credentials to a newly-registered user.');
|
210 |
}
|
211 |
|
212 |
public function field2_callback()
|
213 |
{
|
214 |
+
$this->print_checkbox('field2','wp_notify_postauthor','Send e-mail to an author (and/or others) of a comment/trackback/pingback on a post.');
|
215 |
}
|
216 |
|
217 |
public function field3_callback()
|
218 |
{
|
219 |
+
$this->print_checkbox('field3','wp_notify_moderator','Send e-mail to the moderator of the blog about a new comment that is awaiting approval.');
|
220 |
}
|
221 |
|
222 |
public function field4_callback()
|
223 |
{
|
224 |
+
$this->print_checkbox('field4','wp_password_change_notification','Send e-mail to the blog admin of a user changing his or her password.');
|
225 |
}
|
226 |
|
227 |
public function field5_callback()
|
228 |
{
|
229 |
+
$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.');
|
230 |
}
|
231 |
|
232 |
public function field6_callback()
|
233 |
{
|
234 |
+
$this->print_checkbox('field6','send_email_change_email','Send e-mail to registered user about changing his or her E-mail address.');
|
235 |
}
|
236 |
|
237 |
+
public function update_check()
|
238 |
+
{
|
239 |
+
if (get_site_option( 'fa_mne_version' ) != FA_MNE_VERSION) {
|
240 |
+
|
241 |
+
|
242 |
+
$this->options = get_option( 'famne_options' );
|
243 |
+
|
244 |
+
|
245 |
+
/* Is this the first install, then set all defaults to active */
|
246 |
+
if ($this->options === false)
|
247 |
+
{
|
248 |
+
$options = array(
|
249 |
+
'wp_new_user_notification_to_user' => '1',
|
250 |
+
'wp_new_user_notification_to_admin' => '1',
|
251 |
+
'wp_notify_postauthor' => '1',
|
252 |
+
'wp_notify_moderator' => '1',
|
253 |
+
'wp_password_change_notification' => '1',
|
254 |
+
'send_password_change_email' => '1',
|
255 |
+
'send_email_change_email' => '1'
|
256 |
+
);
|
257 |
+
|
258 |
+
update_option('famne_options',$options);
|
259 |
+
|
260 |
+
}
|
261 |
+
|
262 |
+
|
263 |
+
|
264 |
+
/* update 1.0 to 1.1 fix:
|
265 |
+
update general wp_new_user_notification option into splitted options
|
266 |
+
*/
|
267 |
+
if (!empty($this->options['wp_new_user_notification']))
|
268 |
+
{
|
269 |
+
unset($this->options['wp_new_user_notification']);
|
270 |
+
$this->options['wp_new_user_notification_to_user'] ='1';
|
271 |
+
$this->options['wp_new_user_notification_to_admin'] ='1';
|
272 |
+
update_option('famne_options',$this->options);
|
273 |
+
}
|
274 |
|
275 |
+
update_site_option('fa_mne_version',FA_MNE_VERSION);
|
276 |
+
}
|
277 |
+
}
|
278 |
}
|
includes/pluggable-functions.php
CHANGED
@@ -1,16 +1,15 @@
|
|
1 |
<?php
|
2 |
-
|
3 |
-
|
4 |
/**
|
5 |
|
6 |
STOP SENDING NOTIFICATION MAILS TO THE USERS
|
7 |
|
8 |
*/
|
9 |
|
|
|
10 |
|
11 |
$famne_options = get_option( 'famne_options' );
|
12 |
|
13 |
-
if (
|
14 |
/**
|
15 |
* Email password change notification to registered user.
|
16 |
*
|
@@ -18,7 +17,30 @@ if (empty($famne_options['send_password_change_email']) && !function_exists('don
|
|
18 |
//echo "dont_send_password_change_email";
|
19 |
function dont_send_password_change_email( $send=false, $user='', $userdata='')
|
20 |
{
|
21 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
22 |
}
|
23 |
add_filter('send_password_change_email', 'dont_send_password_change_email',1,3);
|
24 |
endif;
|
@@ -39,14 +61,27 @@ endif;
|
|
39 |
|
40 |
|
41 |
|
42 |
-
if (
|
43 |
/**
|
44 |
* Email login credentials to a newly-registered user.
|
45 |
*
|
46 |
* A new user registration notification is also sent to admin email.
|
47 |
*/
|
48 |
//echo "wp_new_user_notification off";
|
49 |
-
function wp_new_user_notification( $user_id, $notify = '' ) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
50 |
endif;
|
51 |
|
52 |
if (empty($famne_options['wp_notify_postauthor']) && !function_exists('wp_notify_postauthor') ) :
|
@@ -66,11 +101,71 @@ function wp_notify_moderator($comment_id) {}
|
|
66 |
endif;
|
67 |
|
68 |
|
|
|
|
|
69 |
if (empty($famne_options['wp_password_change_notification']) && !function_exists('wp_password_change_notification') ) :
|
70 |
/**
|
71 |
* Notify the blog admin of a user changing password, normally via email.
|
72 |
*/
|
73 |
-
//echo "wp_password_change_notification off";
|
74 |
function wp_password_change_notification($user) {}
|
|
|
|
|
75 |
endif;
|
76 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
<?php
|
|
|
|
|
2 |
/**
|
3 |
|
4 |
STOP SENDING NOTIFICATION MAILS TO THE USERS
|
5 |
|
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 |
*
|
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;
|
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') ) :
|
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 |
+
|
118 |
+
|
119 |
+
function fa_new_user_notification_to_admin ($user_id)
|
120 |
+
{
|
121 |
+
|
122 |
+
//Most parts of this function are copied form pluggable.php
|
123 |
+
|
124 |
+
global $wpdb;
|
125 |
+
$user = get_userdata( $user_id );
|
126 |
+
|
127 |
+
// The blogname option is escaped with esc_html on the way into the database in sanitize_option
|
128 |
+
// we want to reverse this for the plain text arena of emails.
|
129 |
+
$blogname = wp_specialchars_decode(get_option('blogname'), ENT_QUOTES);
|
130 |
+
|
131 |
+
$message = sprintf(__('New user registration on your site %s:'), $blogname) . "\r\n\r\n";
|
132 |
+
$message .= sprintf(__('Username: %s'), $user->user_login) . "\r\n\r\n";
|
133 |
+
$message .= sprintf(__('E-mail: %s'), $user->user_email) . "\r\n";
|
134 |
+
|
135 |
+
|
136 |
+
@wp_mail(get_option('admin_email'), sprintf(__('[%s] New User Registration'), $blogname), $message);
|
137 |
+
}
|
138 |
+
|
139 |
+
|
140 |
+
function fa_new_user_notification_to_user($user_id)
|
141 |
+
{
|
142 |
+
global $wpdb;
|
143 |
+
$user = get_userdata( $user_id );
|
144 |
+
|
145 |
+
// The blogname option is escaped with esc_html on the way into the database in sanitize_option
|
146 |
+
// we want to reverse this for the plain text arena of emails.
|
147 |
+
$blogname = wp_specialchars_decode(get_option('blogname'), ENT_QUOTES);
|
148 |
+
|
149 |
+
|
150 |
+
// Generate something random for a password reset key.
|
151 |
+
$key = wp_generate_password( 20, false );
|
152 |
+
|
153 |
+
/** This action is documented in wp-login.php */
|
154 |
+
do_action( 'retrieve_password_key', $user->user_login, $key );
|
155 |
+
|
156 |
+
// Now insert the key, hashed, into the DB.
|
157 |
+
if ( empty( $wp_hasher ) ) {
|
158 |
+
require_once ABSPATH . WPINC . '/class-phpass.php';
|
159 |
+
$wp_hasher = new PasswordHash( 8, true );
|
160 |
+
}
|
161 |
+
$hashed = time() . ':' . $wp_hasher->HashPassword( $key );
|
162 |
+
$wpdb->update( $wpdb->users, array( 'user_activation_key' => $hashed ), array( 'user_login' => $user->user_login ) );
|
163 |
+
|
164 |
+
$message = sprintf(__('Username: %s'), $user->user_login) . "\r\n\r\n";
|
165 |
+
$message .= __('To set your password, visit the following address:') . "\r\n\r\n";
|
166 |
+
$message .= '<' . network_site_url("wp-login.php?action=rp&key=$key&login=" . rawurlencode($user->user_login), 'login') . ">\r\n\r\n";
|
167 |
+
|
168 |
+
$message .= wp_login_url() . "\r\n";
|
169 |
+
|
170 |
+
wp_mail($user->user_email, sprintf(__('[%s] Your username and password info'), $blogname), $message);
|
171 |
+
}
|
manage-notification-emails.php
CHANGED
@@ -1,11 +1,11 @@
|
|
1 |
<?php
|
2 |
/*
|
3 |
Plugin Name: Manage Notification E-mails
|
4 |
-
Plugin URI: http://www.freeamigos.mx/wp-plugins/manage-notification-emails/1.
|
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.
|
9 |
Author: Virgial Berveling
|
10 |
Author URI: http://www.freeamigos.mx
|
11 |
License: GPLv2
|
@@ -13,9 +13,7 @@ License: GPLv2
|
|
13 |
|
14 |
|
15 |
/*
|
16 |
-
Copyright (c) 2006-2015
|
17 |
-
|
18 |
-
The name WP-Members(tm) is a trademark of butlerblog.com
|
19 |
|
20 |
This program is free software; you can redistribute it and/or modify
|
21 |
it under the terms of the GNU General Public License, version 2, as
|
@@ -59,8 +57,9 @@ License: GPLv2
|
|
59 |
Just put it in your plugins directory.
|
60 |
*/
|
61 |
|
|
|
62 |
|
63 |
-
define( 'FA_MNE_VERSION', '1.
|
64 |
define( 'FA_MNE_PLUGIN_BASENAME', plugin_basename( __FILE__ ) );
|
65 |
define( 'FA_MNE_PLUGIN_DIR', untrailingslashit( dirname( __FILE__ ) ) );
|
66 |
|
@@ -71,7 +70,6 @@ define( 'FA_MNE_PLUGIN_DIR', untrailingslashit( dirname( __FILE__ ) ) );
|
|
71 |
* @since 1.0.0
|
72 |
*/
|
73 |
|
74 |
-
|
75 |
function famne_init() {
|
76 |
|
77 |
if (is_admin()) :
|
@@ -85,4 +83,3 @@ function famne_init() {
|
|
85 |
include_once( FA_MNE_PLUGIN_DIR . '/includes/pluggable-functions.php' );
|
86 |
|
87 |
famne_init();
|
88 |
-
|
1 |
<?php
|
2 |
/*
|
3 |
Plugin Name: Manage Notification E-mails
|
4 |
+
Plugin URI: http://www.freeamigos.mx/wp-plugins/manage-notification-emails/1.1.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.1.0
|
9 |
Author: Virgial Berveling
|
10 |
Author URI: http://www.freeamigos.mx
|
11 |
License: GPLv2
|
13 |
|
14 |
|
15 |
/*
|
16 |
+
Copyright (c) 2006-2015 Virgial Berveling
|
|
|
|
|
17 |
|
18 |
This program is free software; you can redistribute it and/or modify
|
19 |
it under the terms of the GNU General Public License, version 2, as
|
57 |
Just put it in your plugins directory.
|
58 |
*/
|
59 |
|
60 |
+
if (!defined('ABSPATH')) die();
|
61 |
|
62 |
+
define( 'FA_MNE_VERSION', '1.1.0' );
|
63 |
define( 'FA_MNE_PLUGIN_BASENAME', plugin_basename( __FILE__ ) );
|
64 |
define( 'FA_MNE_PLUGIN_DIR', untrailingslashit( dirname( __FILE__ ) ) );
|
65 |
|
70 |
* @since 1.0.0
|
71 |
*/
|
72 |
|
|
|
73 |
function famne_init() {
|
74 |
|
75 |
if (is_admin()) :
|
83 |
include_once( FA_MNE_PLUGIN_DIR . '/includes/pluggable-functions.php' );
|
84 |
|
85 |
famne_init();
|
|
readme.txt
CHANGED
@@ -1,48 +1,68 @@
|
|
1 |
=== Plugin Name ===
|
2 |
Contributors: (Virgial)
|
3 |
-
Tags:
|
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.3
|
7 |
-
Stable tag: 1.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
11 |
-
|
12 |
|
13 |
== Description ==
|
14 |
|
15 |
-
|
16 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
17 |
|
18 |
-
- New user notification
|
19 |
-
- Notify postauthor
|
20 |
-
- Notify moderator
|
21 |
-
- Password change notification to admin
|
22 |
-
- Password change notification to user
|
23 |
-
- E-mailaddress change notification to user
|
24 |
|
25 |
== Installation ==
|
26 |
|
27 |
1. Upload `manage-notification-emails.zip` via the plugins menu
|
28 |
2. Activate the plugin through the 'Plugins' menu in WordPress
|
|
|
29 |
|
30 |
|
31 |
== Frequently Asked Questions ==
|
32 |
|
33 |
= Is it active right away? =
|
34 |
|
35 |
-
|
36 |
|
37 |
|
38 |
== Screenshots ==
|
39 |
|
40 |
-
1. This is your view of the settingspage.
|
41 |
|
42 |
== Upgrade Notice ==
|
43 |
-
|
44 |
|
45 |
== Changelog ==
|
46 |
|
|
|
|
|
|
|
|
|
|
|
47 |
= 1.0 =
|
48 |
* It all starts here.
|
1 |
=== Plugin Name ===
|
2 |
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.3.1
|
7 |
+
Stable tag: 1.1.0
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
11 |
+
Disable or enable the Wordpress notification e-mails (new user, changed password, etc.). Works perfectly in combination with a lot of other plugins!
|
12 |
|
13 |
== Description ==
|
14 |
|
15 |
+
With this plugin you can switch the different Wordpress notification e-mails on and off, like options as the new user and password change notifications send by Wordpress to the administrator and user. Works perfectly in combination with a lot of other plugins!
|
16 |
+
|
17 |
+
**The options you can manage are:**
|
18 |
+
|
19 |
+
1. New user notification to admin
|
20 |
+
2. New user notification to user
|
21 |
+
3. Notify postauthor
|
22 |
+
4. Notify moderator
|
23 |
+
5. Password change notification to admin
|
24 |
+
6. Password change notification to user
|
25 |
+
6. E-mail address change notification to user
|
26 |
+
|
27 |
+
|
28 |
+
**Coming soon**
|
29 |
+
1. E-mail logging
|
30 |
+
2. html styling option for notification e-mails send to users
|
31 |
+
|
32 |
+
|
33 |
+
(Got more ideas? Tell me!)
|
34 |
+
|
35 |
+
If you have suggestions for a new add-on, feel free to email me at virgial@freeamigos.nl.
|
36 |
+
Want regular updates? Feel free to support me with a small donation :-)
|
37 |
|
|
|
|
|
|
|
|
|
|
|
|
|
38 |
|
39 |
== Installation ==
|
40 |
|
41 |
1. Upload `manage-notification-emails.zip` via the plugins menu
|
42 |
2. Activate the plugin through the 'Plugins' menu in WordPress
|
43 |
+
3. Use the settingspage to enable or disable sending of notifications
|
44 |
|
45 |
|
46 |
== Frequently Asked Questions ==
|
47 |
|
48 |
= Is it active right away? =
|
49 |
|
50 |
+
Yes, after activating you can go to the settings page and disable or enable the notification e-mails that suits you.
|
51 |
|
52 |
|
53 |
== Screenshots ==
|
54 |
|
55 |
+
1. This is your view of the settingspage.
|
56 |
|
57 |
== Upgrade Notice ==
|
58 |
+
If you're one of the early installers, than you'll be happy to see that de new user notification is now splitted in admin and user e-mail management.
|
59 |
|
60 |
== Changelog ==
|
61 |
|
62 |
+
= 1.1.0 =
|
63 |
+
FIXED: Checking password change notification to admin now works.
|
64 |
+
ADDED: Splitted the manage option for new user notification e-mail into user and admin e-mail.
|
65 |
+
UPDATED: Clearified some comments and fixed some typo's.
|
66 |
+
|
67 |
= 1.0 =
|
68 |
* It all starts here.
|