Skip to main content

Automatically Notify Your Members On New Posts In WordPress

Do you want to send automatically email to your registered users and notify them oa a new post on WordPress Blog? If yes Jus read it out how to do it easily!

Just paste the following code on your functions.php file:







function email_members($post_ID)  {
global $wpdb;
$usersarray = $wpdb->get_results("SELECT user_email FROM $wpdb->users;");
$users = implode(",", $usersarray);
mail($users, "New WordPress recipe online!", 'A new recipe have been published on http://www.wprecipes.com');
return $post_ID;
}

add_action('publish_post', 'email_members');
Once saved, all registered users will receive an email when a new post is published. 
If  you enjoyed this article, please consider sharing it!

Popular posts from this blog

Google wi fi hotspots In Area Near You

Hey Now search engines like : Google and Bing will help you find wi fi hotspots wherever you go. Just type the name of your city. For eg: Wireless Hotspots in Mumbai Click Here : Wireless Hotspots in Mumbai - Google Search :-) You may also like to read: How to Print a Web Page How to Deactivate an Airbnb Account How to Delete EA Account How to Delete eBay Account How to Download Embedded Video from any Website How to Download a GIF from any Website How to Download Files from Github How to Manage and Access your Samsung Cloud Storage How to Delete 'Continue Watching' on Netflix How to Delete Netflix Account How to Change Language on Netflix How to Split the iPhone Screen for Side-by-Side Browsing & Faster Multitasking How to Print from iPhone How to Backup Contacts on iPhone How to change Apple ID on iPhone How to export and import contacts from iPhone How to add Playlist to iPhone How To Connect PS4 Controller To iPhone How to Delete all emails on iPhone How to remove ...

Get Full Feeds Inside Google Reader

The new way of RSS Feeds only offer headline and a short excerpt and if you want to read full Story you have to leave your Google Reader . Best Solution for this if you are using Google Chrome . You will be able to read the full text of a story inside Google Reader itself but without going through any transformation service. To get Started, simply install the super Google Reader extension inside Chrome and it will add a new menu called the "Super Setting" to your feeds page. Then choose the "Readable" option for all the partial RSS feeds that are you are subscribed to in Google Reader. That's it. The next time you expand a partial item inside Google Reader, This extension will automatically fetch the full content of that page in real time and will display it in place of excepts. You can use the "pre-fetch" option to let it process the full feed in the background and this will reduce the time it takes for Google Reader to Display the full Text entries...

Fresh iPhone Apps : Patch, Viddy, iShop Green

Hey Enjoy with Three Fresh iPhone Apps Patch, ishopGreen and Viddy ... Patch brings hyper-local news, headlines and weather right to your iPhone for your distinct area iShop Green is all about finding environmentally responsible products, both locally and online. Viddy an Instagram-like app for stylizing and sharing video clips rather than photos. Patch (iPhone, iPad) Free Hyper-local news service Patch brings the latest and most relevant news for your area. The se rvice covers l ots of towns all over the country, so finding the news that matters the most to you i s simply a matter of finding your area on Patch’s coverage list. Once you’re keyed in, the news service brings you weather, headlines, business listings and events near you. It also comes with all the social networking functions you’d expect to see from other services, like the ability to share stories by email and on Facebook and Twitter . Viddy (iPhone, iPad) Free Viddy is kind of like Instagram, but with video. The ...