I have been working on a project that needs to occasionally send off emails. If you need to do so, here’s how with wp_mail():
add_filter(‘wp_mail_content_type’,create_function(”, ‘return “text/html”; ‘));
wp_mail(‘email@example.com’, ‘Subject’, ‘Message’);
Thanks to WordPress Cheat Sheets for the code!
I am really impressed with Generate WP. It lets you use forms to easily configure exactly what you want to do in WordPress theme dev and then it outputs the code.
Thanks to core contributor, Tom McFarlin, for writing up this great series of posts on WP Tuts+ dissecting the recommended coding standards for WordPress theme and plugin development.
Big thanks to Pippin from Pippin’s Plugins for having the best code at the top of the search engines when I was looking for a WordPress widget template just like this.
I find that adding the URL to the wp-config.php file helps when transferring a site from local to live production.
define('WP_HOME', 'http://www.example.com'); // no trailing slash
define('WP_SITEURL', 'http://www.example.com'); // no trailing slash