Changeset 509735
- Timestamp:
- 02/24/2012 10:37:29 AM (14 years ago)
- Location:
- wp-post-notifier-for-all/trunk
- Files:
-
- 2 edited
-
readme.txt (modified) (2 diffs)
-
wp-post-notifier-for-all.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wp-post-notifier-for-all/trunk/readme.txt
r466452 r509735 5 5 Tags: notify, post, notifier 6 6 Requires at least: 3.0 7 Tested up to: 3. 2.18 Stable tag: 2. 37 Tested up to: 3.3.1 8 Stable tag: 2.4 9 9 10 10 Notify all Wordpress users (and not only the admin) on post publishing. … … 26 26 27 27 == Changelog == 28 = 2.4 = 29 * Excluding post owner from notification 30 28 31 = 2.3 = 29 32 * Adding [CATEGORIES] in email body template -
wp-post-notifier-for-all/trunk/wp-post-notifier-for-all.php
r461512 r509735 4 4 Plugin URI: http://faycaltirich.blogspot.com/1979/01/wp-post-notifier-for-all.html 5 5 Description: Notify all Wordpress users (and not only the admin) on post publishing. The notification is sent only one time after the first post publishing(not on every update). 6 Version: 2. 36 Version: 2.4 7 7 Author: Fayçal Tirich 8 8 Author URI: http://faycaltirich.blogspot.com … … 77 77 } 78 78 } 79 79 80 if ($process==1){ 80 81 //only notify for new posts … … 94 95 95 96 $author = get_the_author_meta('display_name',$post->post_author); 97 $author_email = get_the_author_meta('user_email',$post->post_author); 96 98 97 99 $email_pnfa_subject = str_replace('[AUTHOR]', htmlspecialchars_decode($author), $pnfa_subject); … … 132 134 add_filter('wp_mail_charset', 'pnfa_get_mail_charset'); 133 135 foreach ( $emails as $email ){ 136 if( $email == $author_email ){ 137 continue ; 138 } 134 139 @wp_mail($email, $email_pnfa_subject, $message, $message_headers ); 135 140 }
Note: See TracChangeset
for help on using the changeset viewer.